Skip to content

Commit

Permalink
Add userId back
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed May 27, 2024
1 parent 27bbfc6 commit dd7088c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/backend/src/services/userService.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ const formatUser = async (user, getStudentAccess = true) => {
// attribute naming is a bit confusing, but it's used so widely in oodikone, that it's not probably worth changing
return {
id: user.id, // our internal id, not the one from sis, (e.g. 101)
username: user.username, // acually username (e.g. mluukkai)
userId: user.username, // This is only used for logging purposes (Grafana), please use either id or username for everything else
username: user.username,
name: user.fullName,
language: user.language,
sisPersonId: user.sisuPersonId,
Expand Down

0 comments on commit dd7088c

Please sign in to comment.