repair: device_location to ip_address
This commit is contained in:
@@ -25,7 +25,6 @@ const getAllTagsDb = async (searchParams = {}) => {
|
|||||||
|
|
||||||
if (whereParamOr) queryParams = whereParamOr;
|
if (whereParamOr) queryParams = whereParamOr;
|
||||||
|
|
||||||
// Filter tambahan (AND conditions)
|
|
||||||
const { whereConditions, whereParamAnd } = pool.buildFilterQuery(
|
const { whereConditions, whereParamAnd } = pool.buildFilterQuery(
|
||||||
[
|
[
|
||||||
{ column: "a.tag_name", param: searchParams.name, type: "string" },
|
{ column: "a.tag_name", param: searchParams.name, type: "string" },
|
||||||
@@ -55,7 +54,7 @@ const getAllTagsDb = async (searchParams = {}) => {
|
|||||||
COUNT(*) OVER() AS total_data,
|
COUNT(*) OVER() AS total_data,
|
||||||
a.*,
|
a.*,
|
||||||
b.device_name,
|
b.device_name,
|
||||||
b.device_location,
|
b.ip_address,
|
||||||
b.device_description,
|
b.device_description,
|
||||||
c.sub_section_name
|
c.sub_section_name
|
||||||
FROM m_tags a
|
FROM m_tags a
|
||||||
@@ -83,7 +82,7 @@ const getTagsByIdDb = async (id) => {
|
|||||||
SELECT
|
SELECT
|
||||||
a.*,
|
a.*,
|
||||||
b.device_name,
|
b.device_name,
|
||||||
b.device_location,
|
b.ip_address,
|
||||||
b.device_description,
|
b.device_description,
|
||||||
c.sub_section_name
|
c.sub_section_name
|
||||||
FROM m_tags a
|
FROM m_tags a
|
||||||
|
|||||||
Reference in New Issue
Block a user