diff --git a/src/resolvers/userResolver.ts b/src/resolvers/userResolver.ts index 508b38c53..a1947e841 100644 --- a/src/resolvers/userResolver.ts +++ b/src/resolvers/userResolver.ts @@ -189,8 +189,12 @@ export class UserResolver { emailConfirmationSent: false, emailConfirmationSentAt: null, }); + dbUser.emailConfirmed = false; + dbUser.emailConfirmedAt = null; + dbUser.emailConfirmationSent = false; + dbUser.emailConfirmationSentAt = null; + dbUser.email = email; } - dbUser.email = email; } if (url !== undefined) { dbUser.url = url;