fix: query device_status to is_active

This commit is contained in:
2025-10-16 07:52:41 +07:00
parent b1feffe39e
commit d56d23cd71

View File

@@ -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,