wisdom #2

Merged
yogiedigital merged 126 commits from wisdom into main 2025-10-20 03:26:33 +00:00
Showing only changes of commit d56d23cd71 - Show all commits

View File

@@ -31,7 +31,7 @@ const getAllDevicesDb = async (searchParams = {}) => {
{ column: "a.device_code", param: searchParams.code, type: "string" }, { column: "a.device_code", param: searchParams.code, type: "string" },
{ column: "a.device_location", param: searchParams.location, type: "string" }, { column: "a.device_location", param: searchParams.location, type: "string" },
{ column: "b.brand_name", param: searchParams.brand, 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 queryParams
); );
@@ -44,7 +44,7 @@ const getAllDevicesDb = async (searchParams = {}) => {
a.device_id, a.device_id,
a.device_code, a.device_code,
a.device_name, a.device_name,
a.device_status, a.is_active,
a.device_location, a.device_location,
a.device_description, a.device_description,
a.ip_address, a.ip_address,
@@ -81,7 +81,7 @@ const getDeviceByIdDb = async (id) => {
SELECT SELECT
a.device_id, a.device_id,
a.device_name, a.device_name,
a.device_status, a.is_active,
a.device_location, a.device_location,
a.device_description, a.device_description,
a.ip_address, a.ip_address,