mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
chore(server/session): implement session destroy
This commit is contained in:
@@ -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?.();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user