chore(server/session): implement session destroy

This commit is contained in:
Elian Doran 2025-05-16 23:24:17 +03:00
parent c3770f0dae
commit dfb8c9f4ce
No known key found for this signature in database

View File

@ -23,6 +23,7 @@ class SQLiteSessionStore extends Store {
destroy(sid: string, callback?: (err?: any) => void): void {
console.log("Destroy ", sid);
sql.execute(/*sql*/`DELETE FROM sessions WHERE id = ?`, sid);
callback?.();
}