mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-31 20:22:27 +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 {
|
destroy(sid: string, callback?: (err?: any) => void): void {
|
||||||
console.log("Destroy ", sid);
|
console.log("Destroy ", sid);
|
||||||
|
sql.execute(/*sql*/`DELETE FROM sessions WHERE id = ?`, sid);
|
||||||
callback?.();
|
callback?.();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user