🎨 clean up instances on start
This commit is contained in:
parent
a43ee81b4a
commit
38106d9cbb
@ -1,4 +1,4 @@
|
|||||||
import { Config, Guild } from "@fosscord/util";
|
import { Config, Guild, Session } from "@fosscord/util";
|
||||||
|
|
||||||
export async function initInstance() {
|
export async function initInstance() {
|
||||||
// TODO: clean up database and delete tombstone data
|
// TODO: clean up database and delete tombstone data
|
||||||
@ -15,4 +15,7 @@ export async function initInstance() {
|
|||||||
await Config.set({ guild: { autoJoin: { guilds: [guild.id] } } });
|
await Config.set({ guild: { autoJoin: { guilds: [guild.id] } } });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: do no clear sessions for instance cluster
|
||||||
|
await Session.delete({});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user