fix(production) : prevent hydration and service failures

This commit is contained in:
2026-09-29 16:28:15 +07:00 Unverified
parent c6f0428aa7
commit 76478fe56d
6 changed files with 37 additions and 12 deletions
+6 -1
View File
@@ -770,7 +770,12 @@ async function executeCatalogSyncJob(initial: CatalogSyncJob, actor: AuditActor)
}
export async function getCurrentCatalogVersion(): Promise<string | null> {
return (await getCurrentCatalogState())?.version ?? null;
try {
return (await getCurrentCatalogState())?.version ?? null;
} catch (error) {
console.error("Unable to read the current catalog version", error);
return null;
}
}
async function getCurrentCatalogState() {