mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-16 12:33:17 +00:00
fix optional chaining
This commit is contained in:
@@ -66,7 +66,7 @@ export class UsersService {
|
||||
passwordRecoveryToken: string
|
||||
}) {
|
||||
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} `
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user