Rename db_count to dbCount in GraphQL response handling for consistency

This commit is contained in:
Jokob @NetAlertX
2026-03-13 13:17:30 +00:00
parent 0766fb2de6
commit 6f7d2c3253

View File

@@ -767,7 +767,7 @@ function initializeDatatable (status) {
${_gqlFields}
}
count
db_count
dbCount
}
}
`;
@@ -810,7 +810,7 @@ function initializeDatatable (status) {
// 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.
res.recordsTotal = json.devices.db_count || 0;
res.recordsTotal = json.devices.dbCount || 0;
res.recordsFiltered = json.devices.count || 0;
// console.log("recordsTotal:", res.recordsTotal, "recordsFiltered:", res.recordsFiltered);