mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +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
	 Elian Doran
						Elian Doran