diff --git a/src/services/whatsapp/whatsapp.service.ts b/src/services/whatsapp/whatsapp.service.ts index 3d8209a..1f4377f 100644 --- a/src/services/whatsapp/whatsapp.service.ts +++ b/src/services/whatsapp/whatsapp.service.ts @@ -332,6 +332,8 @@ export class WhatsappService { const momentDate = moment(data.time); const fallbackValue = momentDate.locale('id').format('dddd, DD MMMM YYYY'); + const currentDate = moment().locale('id').format('DD MMMM YYYY'); + const formattedTotal = new Intl.NumberFormat('id-ID', { style: 'currency', currency: 'IDR', @@ -364,6 +366,11 @@ export class WhatsappService { parameter_name: 'booking_date', text: fallbackValue, }, + { + type: 'text', + parameter_name: 'created_date', + text: currentDate, + }, { type: 'text', parameter_name: 'booking_code',