update sync chicken counting realtime mirrored from weight sync, remove panel iot cron
This commit is contained in:
1 parent
83a41fbbcb
commit
a6d4ddac65
9 files changed
+40
-17
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user