From 7f06416abf3a27a0ae1eaf592fb2e7c6759d5cae Mon Sep 17 00:00:00 2001 From: Muhammad Afif Date: Tue, 14 Oct 2025 17:37:20 +0700 Subject: [PATCH] repair: tags db --- db/tags.db.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/db/tags.db.js b/db/tags.db.js index 4d2bdff..41b61c9 100644 --- a/db/tags.db.js +++ b/db/tags.db.js @@ -33,11 +33,10 @@ const getAllTagsDb = async (searchParams = {}) => { { column: "a.unit", param: searchParams.unit, type: "string" }, { column: "b.device_name", param: searchParams.device, type: "string" }, { - column: "b.device_description", + column: "b.device_code", param: searchParams.device, type: "string", }, - { column: "b.ip_address", param: searchParams.device, type: "string" }, { column: "c.sub_section_name", param: searchParams.subsection, @@ -54,8 +53,7 @@ const getAllTagsDb = async (searchParams = {}) => { COUNT(*) OVER() AS total_data, a.*, b.device_name, - b.ip_address, - b.device_description, + b.device_code, c.sub_section_name FROM m_tags a LEFT JOIN m_device b ON a.device_id = b.device_id @@ -82,8 +80,7 @@ const getTagsByIdDb = async (id) => { SELECT a.*, b.device_name, - b.ip_address, - b.device_description, + b.device_code, c.sub_section_name FROM m_tags a LEFT JOIN m_device b ON a.device_id = b.device_id