1
0
Fork 0
mirror of synced 2024-07-07 15:25:52 +12:00

Invalidate user cache on logout

This commit is contained in:
Rory Powell 2022-03-03 07:20:30 +00:00
parent 4df48d306c
commit 8c61f92123

View file

@ -273,4 +273,5 @@ exports.platformLogout = async ({ ctx, userId, keepActiveSession }) => {
userId,
sessions.map(({ sessionId }) => sessionId)
)
await userCache.invalidateUser(userId)
}