Fixed it always removing the current session

This commit is contained in:
Tracker-Friendly 2024-06-14 15:51:18 +01:00
parent 05488938ef
commit 99b8eb4240
1 changed files with 1 additions and 1 deletions

2
main
View File

@ -523,7 +523,7 @@ async def apisessionsremove():
if userCookie is not None:
if user["id"] == userCookie["id"]:
conn = get_db_connection()
conn.execute("DELETE FROM sessions WHERE sessionid = ?", (userCookie["sessionid"],))
conn.execute("DELETE FROM sessions WHERE sessionid = ?", (sessionId,))
conn.commit()
conn.close()