From 196c1a80dd8e8414071088391211c25098c77871 Mon Sep 17 00:00:00 2001 From: Kanjana Date: Thu, 6 Mar 2025 10:00:16 +0700 Subject: [PATCH] add env line liff --- src/controllers/09-web-hook-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/09-web-hook-controller.ts b/src/controllers/09-web-hook-controller.ts index 10587ef..d55126a 100644 --- a/src/controllers/09-web-hook-controller.ts +++ b/src/controllers/09-web-hook-controller.ts @@ -147,7 +147,7 @@ export class WebHookController extends Controller { dayjs(item.expireDate).format("DD/MM/") + (dayjs(item.expireDate).year() + 543); const diffDate = dayjs(item.expireDate).diff(dayjs(), "day"); - return `${index + 1}. คุณ${item.firstName} ${item.lastName} วันหมดอายุเอกสาร : ${dateFormat} ใกล้หมดอายุอีก ${diffDate} วัน\n https://taii-cmm.case-collection.com/api/v1/line/employee/${item.employeeId}`; + return `${index + 1}. คุณ${item.firstName} ${item.lastName} วันหมดอายุเอกสาร : ${dateFormat} ใกล้หมดอายุอีก ${diffDate} วัน\n ${process.env.LINE_LIFF_URL}/${item.employeeId}`; }) .join("\n");