mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-17 20:59:27 +00:00
fix optional chaining
This commit is contained in:
@@ -66,7 +66,7 @@ export class UsersService {
|
|||||||
passwordRecoveryToken: string
|
passwordRecoveryToken: string
|
||||||
}) {
|
}) {
|
||||||
const htmlFinal =
|
const htmlFinal =
|
||||||
html.replace('##token##', passwordRecoveryToken).replace('##name##', name) ||
|
html?.replace('##token##', passwordRecoveryToken)?.replace('##name##', name) ||
|
||||||
`<b>Hello ${name}!</b><br/>To recover your password follow this link:<br/><a href="http://localhost:3000/confirm-email/${passwordRecoveryToken}">Confirm email</a>. If it doesn't work, copy and paste the following link in your browser:<br/>http://localhost:3000/confirm-email/${passwordRecoveryToken} `
|
`<b>Hello ${name}!</b><br/>To recover your password follow this link:<br/><a href="http://localhost:3000/confirm-email/${passwordRecoveryToken}">Confirm email</a>. If it doesn't work, copy and paste the following link in your browser:<br/>http://localhost:3000/confirm-email/${passwordRecoveryToken} `
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user