From b8dd2a4e01ec72c6ff1aeb5beb95e5120f46a6a6 Mon Sep 17 00:00:00 2001 From: shancheas Date: Tue, 10 Jun 2025 14:30:50 +0700 Subject: [PATCH] temp: update WhatsApp notification method for rescheduling to use OTP notification --- .../managers/reschedule-verification.manager.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/modules/booking-online/order/domain/usecases/managers/reschedule-verification.manager.ts b/src/modules/booking-online/order/domain/usecases/managers/reschedule-verification.manager.ts index 3ab8717..098b92b 100644 --- a/src/modules/booking-online/order/domain/usecases/managers/reschedule-verification.manager.ts +++ b/src/modules/booking-online/order/domain/usecases/managers/reschedule-verification.manager.ts @@ -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