From add661e8c95a18f1c170fc4fd36beb5a32743940 Mon Sep 17 00:00:00 2001 From: Pringgosutono Date: Tue, 10 Feb 2026 07:41:27 +0700 Subject: [PATCH] update query --- cron/TripsWorker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron/TripsWorker.js b/cron/TripsWorker.js index 8499008..a5fe3cf 100644 --- a/cron/TripsWorker.js +++ b/cron/TripsWorker.js @@ -43,7 +43,7 @@ async function job() { CREATE TABLE ${tableName} ( id bigint NOT NULL AUTO_INCREMENT, original_hex text, - protocol enum('gt06','tk119','smartphone') DEFAULT NULL, + protocol enum('gt06','tk119','smartphone','teltonika8e','other') DEFAULT NULL, action enum('login','heartbeat','location','alarm','other','teltonika8e') DEFAULT NULL, device_id varchar(16) DEFAULT NULL, latitude double DEFAULT NULL, @@ -138,7 +138,7 @@ async function job() { const startOfMonth = histMonth.clone().startOf("month").unix() - TIMEFIX const endOfMonth = histMonth.clone().endOf("month").unix() - TIMEFIX console.log( - `Inserting data into history table '${histTableName}' for records from ${startOfMonth} to ${endOfMonth}` + `Inserting data into history table '${histTableName}' for records from ${startOfMonth} to ${endOfMonth}`, ) const q2 = `