mirror of
https://github.com/zadam/trilium.git
synced 2025-12-11 13:15:58 +08:00
chore(server/session): implement session destroy
This commit is contained in:
parent
c3770f0dae
commit
dfb8c9f4ce
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue