Skip to content

Commit

Permalink
fix: registry sync stopping pre-maturely
Browse files Browse the repository at this point in the history
  • Loading branch information
wwills2 committed Oct 16, 2024
1 parent c4a1e0b commit c7d57bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/sync-registries.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}.`,
Expand Down

0 comments on commit c7d57bf

Please sign in to comment.