diff --git a/src/modules/users/services/users.service.ts b/src/modules/users/services/users.service.ts index 1bfbb3a..410af2a 100644 --- a/src/modules/users/services/users.service.ts +++ b/src/modules/users/services/users.service.ts @@ -41,7 +41,7 @@ export class UsersService { html?: string subject?: string }) { - const htmlFinal = html.replace('##token##', verificationToken)?.replace('##name##', name) + const htmlFinal = html.replaceAll('##token##', verificationToken)?.replaceAll('##name##', name) try { await this.emailService.sendMail({ diff --git a/tsconfig.json b/tsconfig.json index adb614c..0903174 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "es2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./",