1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-24 11:22:31 +01:00

🎨 clean up instances on start

This commit is contained in:
Flam3rboy 2021-10-17 00:41:21 +02:00
parent a43ee81b4a
commit 38106d9cbb

View File

@ -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({});
}