From 3678a9b161da6c9ffcb8d69feffc685f58beb9a2 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Wed, 8 May 2024 10:55:10 -0400 Subject: [PATCH] fix: registry id on sync status --- src/tasks/sync-registries.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tasks/sync-registries.js b/src/tasks/sync-registries.js index b53a1df2..88ecd1c5 100644 --- a/src/tasks/sync-registries.js +++ b/src/tasks/sync-registries.js @@ -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.',