Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek committed Sep 26, 2023
1 parent e2763f0 commit a77118a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/server/src/user/user-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ export class UserService {
// blocked = if user already blocked OR is not allowed to pass
newUser.blocked = newUser.blocked || !canPass;
}
if (newUser.additionalData) {
// When a user is created, it does not have `additionalData.profile` set, so it's ok to rewrite it here.
newUser.additionalData.profile = { acceptedPrivacyPolicyDate: new Date().toISOString() };
}
}

async findUserById(userId: string, id: string): Promise<User> {
Expand Down

0 comments on commit a77118a

Please sign in to comment.