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

+6
View File
@@ -36,6 +36,12 @@ const WeightMonitoringPage: React.FC<{ onSettings: () => void }> = ({ onSettings
}
setError(null);
try {
try {
await api.weights.sync({ cycle_id: cycleId });
} catch {
// Best-effort edge sync: don't fail page load if edge vision API is temporarily unreachable
}
const [list, freshCycle] = await Promise.all([
api.weights.list({ cycle_id: cycleId }),
api.cycles?.retrieve?.(cycleId)?.catch(() => null) ?? Promise.resolve(null),