mirror of
https://github.com/spacebarchat/server.git
synced 2026-11-21 19:18:50 +00:00
What does this even return
This commit is contained in:
1 parent
03a966bfc4
commit
151f9aaa4f
1 file changed
+4
@@ -37,4 +37,8 @@ export async function initInstance() {
|
||||
// TODO: do no clear sessions for instance cluster
|
||||
// await Session.clear(); // This is now used as part of authentication...
|
||||
await Session.delete({ session_id: Like("TEMP_%") }); // ...but we can still clear out temporary sessions
|
||||
// async enumerate sessions
|
||||
for await (const session of await Session.createQueryBuilder("session").where("last_seen = '1970/01/01'").select().stream()) {
|
||||
console.log("Instance:",session);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user