about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/workers/scheduler/destructing_statuses_scheduler.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/scheduler/destructing_statuses_scheduler.rb b/app/workers/scheduler/destructing_statuses_scheduler.rb
index d79f97c33..6fc4ecccf 100644
--- a/app/workers/scheduler/destructing_statuses_scheduler.rb
+++ b/app/workers/scheduler/destructing_statuses_scheduler.rb
@@ -7,13 +7,13 @@ class Scheduler::DestructingStatusesScheduler
 
   def perform
     due_statuses.find_each do |destructing_status|
-      DestructStatusWorker.perform_at(destructing_status.delete_after, destructing_status.id)
+      DestructStatusWorker.perform_async(destructing_status.id)
     end
   end
 
   private
 
   def due_statuses
-    DestructingStatus.where('delete_after <= ?', Time.now.utc + PostStatusService::MIN_DESTRUCT_OFFSET)
+    DestructingStatus.where('delete_after <= ?', Time.now.utc)
   end
 end