From d56d23cd71c209007a2892fab9c85f84bea9a55a Mon Sep 17 00:00:00 2001 From: Antony Kurniawan Date: Thu, 16 Oct 2025 07:52:41 +0700 Subject: [PATCH] fix: query device_status to is_active --- db/device.db.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/device.db.js b/db/device.db.js index 366963d..851ba60 100644 --- a/db/device.db.js +++ b/db/device.db.js @@ -31,7 +31,7 @@ const getAllDevicesDb = async (searchParams = {}) => { { column: "a.device_code", param: searchParams.code, type: "string" }, { column: "a.device_location", param: searchParams.location, type: "string" }, { column: "b.brand_name", param: searchParams.brand, type: "string" }, - { column: "a.device_status", param: searchParams.status, type: "string" }, + { column: "a.is_active", param: searchParams.status, type: "string" }, ], queryParams ); @@ -44,7 +44,7 @@ const getAllDevicesDb = async (searchParams = {}) => { a.device_id, a.device_code, a.device_name, - a.device_status, + a.is_active, a.device_location, a.device_description, a.ip_address, @@ -81,7 +81,7 @@ const getDeviceByIdDb = async (id) => { SELECT a.device_id, a.device_name, - a.device_status, + a.is_active, a.device_location, a.device_description, a.ip_address,