Skip to content

Commit

Permalink
chore: log userId on disconnect
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <[email protected]>
  • Loading branch information
mattkrick committed Feb 10, 2025
1 parent 8d77d00 commit 9b3518a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const disconnectSocket: MutationResolvers['disconnectSocket'] = async (
redis.lrange(`presence:${userId}`, 0, -1)
])
if (!user) {
throw new Error('User does not exist')
throw new Error(`User does not exist: ${userId}`)
}
const tms = user.tms ?? []
const disconnectingSocket = userPresence.find(
Expand Down

0 comments on commit 9b3518a

Please sign in to comment.