fix
This commit is contained in:
@@ -418,12 +418,10 @@ class SmsService {
|
||||
}
|
||||
}
|
||||
|
||||
async sendPasswordResetSMS(mobile, resetUrl, date = new Date()) {
|
||||
async sendPasswordResetSMS(mobile, resetLink, date = new Date()) {
|
||||
console.log(date)
|
||||
const smsData = {
|
||||
Parameters: [
|
||||
{ name: 'resetlink', value: `${resetUrl}` },
|
||||
{ name: 'date', value: `${formatSMSDate(date)}` }
|
||||
],
|
||||
Parameters: [{ name: 'resetlink', value: `${resetLink}` }],
|
||||
Mobile: mobile,
|
||||
TemplateId: this.PASSWORD_RESET_PATTERN
|
||||
}
|
||||
@@ -435,9 +433,11 @@ class SmsService {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
})
|
||||
console.log(data)
|
||||
return data
|
||||
} catch (error) {
|
||||
console.error('Error in sending Password Reset SMS', error)
|
||||
console.log(error)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user