mirror of
https://github.com/FlowiseAI/Flowise.git
synced 2026-10-12 02:02:17 +00:00
fix: session cleanup when using mysql for storing sessions (#5984)
This commit is contained in:
@@ -163,7 +163,7 @@ export const destroyAllSessionsForUser = async (userId: string): Promise<void> =
|
||||
await repository
|
||||
.createQueryBuilder()
|
||||
.delete()
|
||||
.where(`JSON_EXTRACT(sess, '$.passport.user.id') = :userId`, { userId })
|
||||
.where(`JSON_EXTRACT(data, '$.passport.user.id') = :userId`, { userId }) // express-mysql-session uses column name 'data' for session payload, not 'sess'
|
||||
.execute()
|
||||
break
|
||||
case 'postgres':
|
||||
|
||||
Reference in New Issue
Block a user