mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
chore(server/session): implement session destroy
This commit is contained in:
parent
c3770f0dae
commit
dfb8c9f4ce
@ -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?.();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user