From 93d6a975382b789d11e0e7e0d045fb583e9193cc Mon Sep 17 00:00:00 2001 From: Pringgosutono Date: Thu, 20 Nov 2025 09:02:24 +0700 Subject: [PATCH] padStart --- controllers/ListenController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/ListenController.js b/controllers/ListenController.js index 22eb3c4..7e364a7 100644 --- a/controllers/ListenController.js +++ b/controllers/ListenController.js @@ -563,7 +563,7 @@ class ListenController { const data = req.body const now = moment().unix() - const vhc_id = (await VhcModels.getVhcByDeviceId(data.imei))?.[0]?.vid + const vhc_id = (await VhcModels.getVhcByDeviceId(data.imei.padStart(16, "0")))?.[0]?.vid console.log("vhc_id", vhc_id) if (!vhc_id) {