feat: Add a job to clear notifications that were created before 1 month (#8732)

This commit is contained in:
Muhsin Keloth
2024-01-19 13:03:23 +05:30
committed by GitHub
parent 19474e0074
commit 0ac015ce7a
4 changed files with 40 additions and 0 deletions

View File

@@ -40,5 +40,10 @@ RSpec.describe TriggerScheduledItemsJob do
expect(Channels::Whatsapp::TemplatesSyncSchedulerJob).to receive(:perform_later).once
described_class.perform_now
end
it 'triggers Notification::RemoveOldNotificationJob' do
expect(Notification::RemoveOldNotificationJob).to receive(:perform_later).once
described_class.perform_now
end
end
end