Skip to content

Commit

Permalink
Fix userId logging
Browse files Browse the repository at this point in the history
  • Loading branch information
paustint committed Jan 24, 2025
1 parent 6a87bd7 commit f1ba88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/api-config/src/lib/api-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const httpLogger = pinoHttp<express.Request, express.Response>({
},
customProps: function (req, res) {
return {
userId: (req as any).user?.id,
userId: (req as any).session?.user?.id,
sessionId: (req as any).session?.id,
};
},
Expand Down

0 comments on commit f1ba88b

Please sign in to comment.