add: column query device _id
This commit is contained in:
@@ -33,6 +33,7 @@ const getAllDevicesDb = async (searchParams = {}) => {
|
||||
|
||||
const queryText = `
|
||||
SELECT COUNT(*) OVER() AS total_data,
|
||||
a.device_id,
|
||||
a.device_status,
|
||||
a.device_location,
|
||||
a.device_description,
|
||||
@@ -70,6 +71,7 @@ const getAllDevicesDb = async (searchParams = {}) => {
|
||||
const getDeviceByIdDb = async (id) => {
|
||||
const queryText = `
|
||||
SELECT
|
||||
a.device_id,
|
||||
a.device_status,
|
||||
a.device_location,
|
||||
a.device_description,
|
||||
|
||||
Reference in New Issue
Block a user