Skip to content

Commit

Permalink
fix change personnal information
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-pages committed Sep 25, 2024
1 parent 393c465 commit cea04b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/controllers/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ userController.put({ path: '/:id', userType: UserType.OBSERVATOR }, async (req:
user.hasAcceptedNewsletter = valueOrDefault(data.hasAcceptedNewsletter, user.hasAcceptedNewsletter);
user.language = valueOrDefault(data.language, user.language);
user.hasStudentLinked = valueOrDefault(data.hasStudentLinked, user.hasStudentLinked);
await AppDataSource.getRepository(User).save(user);
res.sendJSON(user);
});

Expand Down

0 comments on commit cea04b4

Please sign in to comment.