about summary refs log tree commit diff
path: root/app/workers/notification_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/notification_worker.rb')
-rw-r--r--app/workers/notification_worker.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/workers/notification_worker.rb b/app/workers/notification_worker.rb
new file mode 100644
index 000000000..129512a5a
--- /dev/null
+++ b/app/workers/notification_worker.rb
@@ -0,0 +1,7 @@
+class NotificationWorker
+  include Sidekiq::Worker
+
+  def perform(stream_entry_id, target_account_id)
+    SendInteractionService.new.(StreamEntry.find(stream_entry_id), Account.find(target_account_id))
+  end
+end