do not remove optin code in DB after email verification

This commit is contained in:
Moriz Wahl 2022-03-29 00:51:44 +02:00
parent cb90249301
commit 37e36e01af

View File

@ -486,12 +486,6 @@ export class UserResolver {
throw new Error('error saving user: ' + error)
})
// why do we delete the code?
// Delete Code
await queryRunner.manager.remove(optInCode).catch((error) => {
throw new Error('error deleting code: ' + error)
})
await queryRunner.commitTransaction()
} catch (e) {
await queryRunner.rollbackTransaction()