Allow deleting server #202

This commit is contained in:
Prayag Prajapati committed 2023-10-27 22:28:47 +05:30
1 parent aa47e2fda5
commit 2f95e95e2e
6 files changed
+79 -38

No files matched your search

-2
View File
@@ -56,8 +56,6 @@ export const getDefaultServer = async () => {
*/
export const delServer = async (serverId) => {
await servers.delete(serverId);
// remove the default server
await setDefaultServer(null);
await servers.save();
};