Invalidate user cache on logout

This commit is contained in:
Rory Powell 2022-03-03 07:20:30 +00:00
parent 091f054e8a
commit c67de30d8c
1 changed files with 1 additions and 0 deletions

View File

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