From 36a2609512de9acf91db183bbac7c8933aa7fec1 Mon Sep 17 00:00:00 2001 From: Muhammad Afif Date: Fri, 10 Oct 2025 20:48:24 +0700 Subject: [PATCH] repair: device_location to ip_address --- db/tags.db.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/db/tags.db.js b/db/tags.db.js index 407e9eb..faae300 100644 --- a/db/tags.db.js +++ b/db/tags.db.js @@ -25,7 +25,6 @@ const getAllTagsDb = async (searchParams = {}) => { if (whereParamOr) queryParams = whereParamOr; - // Filter tambahan (AND conditions) const { whereConditions, whereParamAnd } = pool.buildFilterQuery( [ { column: "a.tag_name", param: searchParams.name, type: "string" }, @@ -55,7 +54,7 @@ const getAllTagsDb = async (searchParams = {}) => { COUNT(*) OVER() AS total_data, a.*, b.device_name, - b.device_location, + b.ip_address, b.device_description, c.sub_section_name FROM m_tags a @@ -83,7 +82,7 @@ const getTagsByIdDb = async (id) => { SELECT a.*, b.device_name, - b.device_location, + b.ip_address, b.device_description, c.sub_section_name FROM m_tags a