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:
@@ -250,6 +250,20 @@ export async function POST(req: Request) {
|
||||
pushProgress();
|
||||
updatePhaseProgress(2, 2);
|
||||
}
|
||||
// Sync admin layers (lightweight, non-fatal)
|
||||
for (const adminLayer of ["LIMITE_INTRAV_DYNAMIC", "LIMITE_UAT"]) {
|
||||
try {
|
||||
await syncLayer(
|
||||
validated.username,
|
||||
validated.password,
|
||||
validated.siruta,
|
||||
adminLayer,
|
||||
{ jobId, isSubStep: true },
|
||||
);
|
||||
} catch {
|
||||
// admin layers are best-effort
|
||||
}
|
||||
}
|
||||
finishPhase();
|
||||
|
||||
/* ══════════════════════════════════════════════════════════ */
|
||||
|
||||
Reference in New Issue
Block a user