feat: update status to synced when no state changes are detected
Browse files- health-server.js +2 -1
- n8n-sync.py +1 -1
health-server.js
CHANGED
|
@@ -37,7 +37,8 @@ function renderDashboard(data) {
|
|
| 37 |
if (
|
| 38 |
status === "success" ||
|
| 39 |
status === "configured" ||
|
| 40 |
-
status === "restored"
|
|
|
|
| 41 |
)
|
| 42 |
cls = "status-online";
|
| 43 |
if (status === "syncing" || status === "restoring") cls = "status-syncing";
|
|
|
|
| 37 |
if (
|
| 38 |
status === "success" ||
|
| 39 |
status === "configured" ||
|
| 40 |
+
status === "restored" ||
|
| 41 |
+
status === "synced"
|
| 42 |
)
|
| 43 |
cls = "status-online";
|
| 44 |
if (status === "syncing" || status === "restoring") cls = "status-syncing";
|
n8n-sync.py
CHANGED
|
@@ -167,7 +167,7 @@ def sync_once(last_fingerprint: str | None = None) -> str:
|
|
| 167 |
repo_id = ensure_repo_exists()
|
| 168 |
current_fingerprint = fingerprint_dir(N8N_HOME)
|
| 169 |
if last_fingerprint is not None and current_fingerprint == last_fingerprint:
|
| 170 |
-
write_status("
|
| 171 |
return last_fingerprint
|
| 172 |
|
| 173 |
write_status("syncing", f"Uploading state to {repo_id}")
|
|
|
|
| 167 |
repo_id = ensure_repo_exists()
|
| 168 |
current_fingerprint = fingerprint_dir(N8N_HOME)
|
| 169 |
if last_fingerprint is not None and current_fingerprint == last_fingerprint:
|
| 170 |
+
write_status("synced", "No state changes detected.")
|
| 171 |
return last_fingerprint
|
| 172 |
|
| 173 |
write_status("syncing", f"Uploading state to {repo_id}")
|