mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-20 08:00:25 +00:00
Fix logout api
This commit is contained in:
@@ -71,14 +71,12 @@ router.post(
|
||||
}
|
||||
|
||||
for (const session of sessions) {
|
||||
console.log("Session pre remove:", session);
|
||||
await session.remove();
|
||||
console.log("Session post remove:", session);
|
||||
await emitEvent({
|
||||
session_id: session.session_id,
|
||||
event: "SB_SESSION_REMOVE",
|
||||
origin: "Sessions logout",
|
||||
});
|
||||
await session.remove();
|
||||
}
|
||||
res.status(204).send();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user