Merge pull request #13257 from josejibin/fix/session-clearing-postgres
fix: session clearing query on postgres
This commit is contained in:
commit
b5cb40aa91
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ def get_sessions_to_clear(user=None, keep_current=False, device=None):
|
|||
|
||||
return frappe.db.sql_list("""
|
||||
SELECT `sid` FROM `tabSessions`
|
||||
WHERE user=%(user)s
|
||||
WHERE `tabSessions`.user=%(user)s
|
||||
AND device in %(device)s
|
||||
{condition}
|
||||
ORDER BY `lastupdate` DESC
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue