Skip to content

Commit

Permalink
fix: registry id on sync status
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed May 8, 2024
1 parent 61271c0 commit 3678a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tasks/sync-registries.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,13 @@ const syncOrganizationAudit = async (organization) => {
await new Promise((resolve) => setTimeout(resolve, 30000));

const { sync_status } = await datalayer.getSyncStatus(
organization.orgUid,
organization.registryId,
);

if (lastProcessedIndex > sync_status.generation) {
const warningMsg = [
`No data found for ${organization.name} in the current datalayer generation.`,
`DataLayer not yet caught up to generation ${lastProcessedIndex}.`,
`DataLayer not yet caught up to generation ${lastProcessedIndex}. The current processed generation is ${sync_status.generation}.`,
`This issue is often temporary and could be due to a lag in data propagation.`,
'Syncing for this organization will be paused until this is resolved.',
'For ongoing issues, please contact the organization.',
Expand Down

0 comments on commit 3678a9b

Please sign in to comment.