temp: update WhatsApp notification method for rescheduling to use OTP notification
parent
6a7ab72e12
commit
b8dd2a4e01
|
@ -53,13 +53,17 @@ export class RescheduleVerificationManager {
|
||||||
});
|
});
|
||||||
|
|
||||||
const whatsapp = new WhatsappService();
|
const whatsapp = new WhatsappService();
|
||||||
whatsapp.bookingReschedule({
|
whatsapp.sendOtpNotification({
|
||||||
phone: transaction.customer_phone,
|
phone: transaction.customer_phone,
|
||||||
code: otp.toString(),
|
code: otp.toString(),
|
||||||
name: transaction.customer_name,
|
|
||||||
time: new Date(request.reschedule_date).getTime(),
|
|
||||||
id: transaction.id,
|
|
||||||
});
|
});
|
||||||
|
// whatsapp.bookingReschedule({
|
||||||
|
// phone: transaction.customer_phone,
|
||||||
|
// code: otp.toString(),
|
||||||
|
// name: transaction.customer_name,
|
||||||
|
// time: new Date(request.reschedule_date).getTime(),
|
||||||
|
// id: transaction.id,
|
||||||
|
// });
|
||||||
return result;
|
return result;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// You can customize the error handling as needed, e.g., throw HttpException for NestJS
|
// You can customize the error handling as needed, e.g., throw HttpException for NestJS
|
||||||
|
|
Loading…
Reference in New Issue