temp: update WhatsApp notification method for rescheduling to use OTP notification

pull/157/head
shancheas 2025-06-10 14:30:50 +07:00
parent 6a7ab72e12
commit b8dd2a4e01
1 changed files with 8 additions and 4 deletions

View File

@ -53,13 +53,17 @@ export class RescheduleVerificationManager {
});
const whatsapp = new WhatsappService();
whatsapp.bookingReschedule({
whatsapp.sendOtpNotification({
phone: transaction.customer_phone,
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;
} catch (error) {
// You can customize the error handling as needed, e.g., throw HttpException for NestJS