Skip to content

Commit 6f7d2c3

Browse files
committed
Rename db_count to dbCount in GraphQL response handling for consistency
1 parent 0766fb2 commit 6f7d2c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

front/devices.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ function initializeDatatable (status) {
767767
${_gqlFields}
768768
}
769769
count
770-
db_count
770+
dbCount
771771
}
772772
}
773773
`;
@@ -810,7 +810,7 @@ function initializeDatatable (status) {
810810

811811
// recordsTotal = raw DB count (before filters/search) so DataTables uses emptyTable
812812
// only when the DB is genuinely empty, and zeroRecords when a filter returns nothing.
813-
res.recordsTotal = json.devices.db_count || 0;
813+
res.recordsTotal = json.devices.dbCount || 0;
814814
res.recordsFiltered = json.devices.count || 0;
815815

816816
// console.log("recordsTotal:", res.recordsTotal, "recordsFiltered:", res.recordsFiltered);

0 commit comments

Comments
 (0)