fix token replacement

This commit is contained in:
andres
2023-07-21 19:37:24 +02:00
parent b7d87b2fef
commit 8e374fbaa4
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ export class UsersService {
html?: string html?: string
subject?: string subject?: string
}) { }) {
const htmlFinal = html.replace('##token##', verificationToken)?.replace('##name##', name) const htmlFinal = html.replaceAll('##token##', verificationToken)?.replaceAll('##name##', name)
try { try {
await this.emailService.sendMail({ await this.emailService.sendMail({

View File

@@ -6,7 +6,7 @@
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"target": "es2017", "target": "es2021",
"sourceMap": true, "sourceMap": true,
"outDir": "./dist", "outDir": "./dist",
"baseUrl": "./", "baseUrl": "./",