mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-16 20:59:26 +00:00
fix token replacement
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
@@ -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": "./",
|
||||||
|
|||||||
Reference in New Issue
Block a user