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:
@@ -172,17 +172,15 @@ async function runAutoRefresh() {
|
||||
"CLADIRI_ACTIVE",
|
||||
{ uatName: uat.name },
|
||||
);
|
||||
// Intravilan — lightweight, non-fatal
|
||||
try {
|
||||
await syncLayer(
|
||||
username,
|
||||
password,
|
||||
uat.siruta,
|
||||
"LIMITE_INTRAV_DYNAMIC",
|
||||
{ uatName: uat.name },
|
||||
);
|
||||
} catch {
|
||||
// intravilan is best-effort
|
||||
// Admin layers — lightweight, non-fatal
|
||||
for (const adminLayer of ["LIMITE_INTRAV_DYNAMIC", "LIMITE_UAT"]) {
|
||||
try {
|
||||
await syncLayer(username, password, uat.siruta, adminLayer, {
|
||||
uatName: uat.name,
|
||||
});
|
||||
} catch {
|
||||
// admin layers are best-effort
|
||||
}
|
||||
}
|
||||
const dur = ((Date.now() - start) / 1000).toFixed(1);
|
||||
console.log(
|
||||
|
||||
@@ -186,17 +186,19 @@ async function executeStep(
|
||||
"TERENURI_ACTIVE",
|
||||
{ uatName: city.name, forceFullSync: true },
|
||||
);
|
||||
// Also sync intravilan limits (lightweight, non-fatal)
|
||||
try {
|
||||
await syncLayer(
|
||||
process.env.ETERRA_USERNAME!,
|
||||
process.env.ETERRA_PASSWORD!,
|
||||
city.siruta,
|
||||
"LIMITE_INTRAV_DYNAMIC",
|
||||
{ uatName: city.name },
|
||||
);
|
||||
} catch {
|
||||
// intravilan is best-effort
|
||||
// Also sync admin layers (lightweight, non-fatal)
|
||||
for (const adminLayer of ["LIMITE_INTRAV_DYNAMIC", "LIMITE_UAT"]) {
|
||||
try {
|
||||
await syncLayer(
|
||||
process.env.ETERRA_USERNAME!,
|
||||
process.env.ETERRA_PASSWORD!,
|
||||
city.siruta,
|
||||
adminLayer,
|
||||
{ uatName: city.name },
|
||||
);
|
||||
} catch {
|
||||
// admin layers are best-effort
|
||||
}
|
||||
}
|
||||
const dur = ((Date.now() - start) / 1000).toFixed(1);
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user