feat(parcel-sync): add LIMITE_UAT to sync package everywhere
All sync paths now include both admin layers (LIMITE_INTRAV_DYNAMIC + LIMITE_UAT) as best-effort alongside terenuri + cladiri: - export-bundle (hero buttons) - sync-background (fire-and-forget) - auto-refresh scheduler (weekday nights) - weekend deep sync (weekend nights) - freshness check (export tab badge) LIMITE_UAT rarely changes so incremental sync will skip it almost every time, but it stays fresh in the DB freshness check. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -221,19 +221,21 @@ async function runBackground(params: {
|
||||
throw new Error(r.error ?? "Sync clădiri failed");
|
||||
}
|
||||
|
||||
// Sync intravilan limits (always, lightweight layer)
|
||||
phase = "Sincronizare limite intravilan";
|
||||
push({});
|
||||
try {
|
||||
await syncLayer(username, password, siruta, "LIMITE_INTRAV_DYNAMIC", {
|
||||
forceFullSync: forceSync,
|
||||
jobId,
|
||||
isSubStep: true,
|
||||
});
|
||||
} catch {
|
||||
// Non-critical — don't fail the whole job
|
||||
note = "Avertisment: limite intravilan nu s-au sincronizat";
|
||||
// Sync admin layers (always, lightweight)
|
||||
for (const adminLayer of ["LIMITE_INTRAV_DYNAMIC", "LIMITE_UAT"]) {
|
||||
phase = `Sincronizare ${adminLayer === "LIMITE_UAT" ? "limite UAT" : "limite intravilan"}`;
|
||||
push({});
|
||||
try {
|
||||
await syncLayer(username, password, siruta, adminLayer, {
|
||||
forceFullSync: forceSync,
|
||||
jobId,
|
||||
isSubStep: true,
|
||||
});
|
||||
} catch {
|
||||
// Non-critical — don't fail the whole job
|
||||
note = `Avertisment: ${adminLayer} nu s-a sincronizat`;
|
||||
push({});
|
||||
}
|
||||
}
|
||||
|
||||
if (!terenuriNeedsSync && !cladiriNeedsSync) {
|
||||
|
||||
Reference in New Issue
Block a user