Invalidate user cache on logout

This commit is contained in:
Rory Powell 2022-03-03 07:20:30 +00:00
parent 4df48d306c
commit 8c61f92123
1 changed files with 1 additions and 0 deletions

View File

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