diff --git a/app/jobs/ama_notification_efolder_sync_job.rb b/app/jobs/ama_notification_efolder_sync_job.rb index 99813809bc2..27ec96b7da7 100644 --- a/app/jobs/ama_notification_efolder_sync_job.rb +++ b/app/jobs/ama_notification_efolder_sync_job.rb @@ -17,7 +17,7 @@ def perform all_active_ama_appeals = appeals_recently_outcoded + appeals_never_synced + ready_for_resync - sync_notification_reports(all_active_ama_appeals.first(BATCH_LIMIT.to_i)) + sync_notification_reports(all_active_ama_appeals.uniq.first(BATCH_LIMIT.to_i)) end private diff --git a/app/jobs/legacy_notification_efolder_sync_job.rb b/app/jobs/legacy_notification_efolder_sync_job.rb index d37847a8dbc..a833af6c477 100644 --- a/app/jobs/legacy_notification_efolder_sync_job.rb +++ b/app/jobs/legacy_notification_efolder_sync_job.rb @@ -17,7 +17,7 @@ def perform all_active_legacy_appeals = appeals_recently_outcoded + appeals_never_synced + ready_for_resync - sync_notification_reports(all_active_legacy_appeals.first(BATCH_LIMIT.to_i)) + sync_notification_reports(all_active_legacy_appeals.uniq.first(BATCH_LIMIT.to_i)) end private