mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -07:00
Rename db_count to dbCount in GraphQL response handling for consistency
This commit is contained in:
+2
-2
@@ -767,7 +767,7 @@ function initializeDatatable (status) {
|
|||||||
${_gqlFields}
|
${_gqlFields}
|
||||||
}
|
}
|
||||||
count
|
count
|
||||||
db_count
|
dbCount
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -810,7 +810,7 @@ function initializeDatatable (status) {
|
|||||||
|
|
||||||
// recordsTotal = raw DB count (before filters/search) so DataTables uses emptyTable
|
// recordsTotal = raw DB count (before filters/search) so DataTables uses emptyTable
|
||||||
// only when the DB is genuinely empty, and zeroRecords when a filter returns nothing.
|
// only when the DB is genuinely empty, and zeroRecords when a filter returns nothing.
|
||||||
res.recordsTotal = json.devices.db_count || 0;
|
res.recordsTotal = json.devices.dbCount || 0;
|
||||||
res.recordsFiltered = json.devices.count || 0;
|
res.recordsFiltered = json.devices.count || 0;
|
||||||
|
|
||||||
// console.log("recordsTotal:", res.recordsTotal, "recordsFiltered:", res.recordsFiltered);
|
// console.log("recordsTotal:", res.recordsTotal, "recordsFiltered:", res.recordsFiltered);
|
||||||
|
|||||||
Reference in New Issue
Block a user