From e42ba5ae5716aee669e5cae078ab600c76fbac83 Mon Sep 17 00:00:00 2001 From: pringgosutono Date: Fri, 8 May 2026 10:19:08 +0700 Subject: [PATCH] trim address --- controllers/ListenController.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/ListenController.js b/controllers/ListenController.js index 406c0a6..afe5564 100644 --- a/controllers/ListenController.js +++ b/controllers/ListenController.js @@ -367,8 +367,9 @@ async function commitMessage(now, logDevice) { } const time = moment.unix(logDevice.crt_d + TIMEFIX).format("DD MMM YYYY HH:mm:ss") - // const rawMsg = `${nopol} | OVERSPEED | ${time} | ${logDevice.speed} km/h | ${address}`.trim() - const rawMsg = `${nopol} | OVERSPEED | ${time} | ${logDevice.speed} km/h`.trim() + address = address.substring(0, 100) + const rawMsg = `${nopol} | OVERSPEED | ${time} | ${logDevice.speed} km/h | ${address}`.trim() + // const rawMsg = `${nopol} | OVERSPEED | ${time} | ${logDevice.speed} km/h`.trim() const countryCode = process.env.SMS_COUNTRY_CODE ?? "670" const smsHost = process.env.SMS_HOST ?? "http://192.168.40.2:8181"