From c7d57bf5ecae17da5f93eea3bea844250a09fda7 Mon Sep 17 00:00:00 2001 From: William Wills Date: Wed, 16 Oct 2024 14:30:40 -0400 Subject: [PATCH] fix: registry sync stopping pre-maturely --- src/tasks/sync-registries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks/sync-registries.js b/src/tasks/sync-registries.js index 5780d8b7..8706e6cb 100644 --- a/src/tasks/sync-registries.js +++ b/src/tasks/sync-registries.js @@ -357,7 +357,7 @@ const syncOrganizationAudit = async (organization) => { return; } - if (toBeProcessedDatalayerGenerationIndex + 1 > sync_status.generation) { + if (toBeProcessedDatalayerGenerationIndex > sync_status.generation) { const warningMsg = [ `Generation ${toBeProcessedDatalayerGenerationIndex + 1} does not exist in ${organization.name} (registry store ${organization.registryId}) root history`, `DataLayer not yet caught up to generation ${auditTableHighestProcessedGenerationIndex + 1}. The the highest generation datalayer has synced is ${sync_status.generation}.`,