()
| 139 | }; |
| 140 | |
| 141 | const checkAutoSync = async () => { |
| 142 | if (autoSyncCheckedRef.current) return; |
| 143 | autoSyncCheckedRef.current = true; |
| 144 | try { |
| 145 | const result = await syncAuto(); |
| 146 | if (result.action === 'pulled') { |
| 147 | console.log('[AutoSync] Pulled newer config from cloud'); |
| 148 | await refreshData(); |
| 149 | } |
| 150 | } catch {} |
| 151 | }; |
| 152 | |
| 153 | const pollHealth = async () => { |
| 154 | try { |
no test coverage detected