mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-16 05:09:26 +00:00
fix token replacement
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"target": "es2017",
|
||||
"target": "es2021",
|
||||
"sourceMap": true,
|
||||
"outDir": "./dist",
|
||||
"baseUrl": "./",
|
||||
|
||||
Reference in New Issue
Block a user