padStart
This commit is contained in:
@ -563,7 +563,7 @@ class ListenController {
|
|||||||
const data = req.body
|
const data = req.body
|
||||||
const now = moment().unix()
|
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)
|
console.log("vhc_id", vhc_id)
|
||||||
|
|
||||||
if (!vhc_id) {
|
if (!vhc_id) {
|
||||||
|
|||||||
Reference in New Issue
Block a user