fix(SPG-1270): add information date to message notification

pull/162/head
shancheas 2025-06-26 13:55:06 +07:00
parent 58e062dd6c
commit 2c92d4b8b3
1 changed files with 7 additions and 0 deletions

View File

@ -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',