update sync chicken counting realtime mirrored from weight sync, remove panel iot cron

This commit is contained in:
Alberto-Audrix committed 2026-10-07 15:04:15 +07:00
1 parent 83a41fbbcb
commit a6d4ddac65
9 files changed
+40 -17

No files matched your search

+4
View File
@@ -74,6 +74,10 @@ const Dashboard: React.FC<Props> = ({ setView }) => {
}
setError(null);
try {
await Promise.all([
api.countings.sync({ cycle_id: cycleId }).catch(() => null),
api.weights.sync({ cycle_id: cycleId }).catch(() => null),
]);
const [kpiRows, countingRows, manualRows, weightRows, freshCycle] = await Promise.all([
api.kpis.list({ cycle_id: cycleId }),
api.countings.list({ cycle_id: cycleId }),