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.',