mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-03 19:45:48 +00:00
🎨 clean up instances on start
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Config, Guild } from "@fosscord/util";
|
||||
import { Config, Guild, Session } from "@fosscord/util";
|
||||
|
||||
export async function initInstance() {
|
||||
// TODO: clean up database and delete tombstone data
|
||||
@@ -15,4 +15,7 @@ export async function initInstance() {
|
||||
await Config.set({ guild: { autoJoin: { guilds: [guild.id] } } });
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: do no clear sessions for instance cluster
|
||||
await Session.delete({});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user