Fix logout api

This commit is contained in:
Rory&
2026-08-18 12:14:31 +02:00
parent fcd9e9e0c9
commit 21ab4a27dc
+1 -3
View File
@@ -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();
},