Skip to content

Commit

Permalink
Remove reminder notification actor
Browse files Browse the repository at this point in the history
Semantically on the recepient is relevant, as the actor is a reminder
  • Loading branch information
akabiru committed Nov 22, 2024
1 parent d6cd810 commit 4c01600
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/workers/reminders/schedule_reminder_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def create_notification_from_reminder(reminder)
Notifications::CreateService
.new(user: reminder.creator)
.call(
actor_id: reminder.creator_id,
recipient_id: reminder.creator_id,
resource: reminder.remindable,
reason: :reminder
Expand Down
1 change: 0 additions & 1 deletion spec/workers/reminders/schedule_reminder_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
aggregate_failures "notification attributes" do
notification = notification_svc.result

expect(notification.actor_id).to eq(reminder.creator_id)
expect(notification.recipient_id).to eq(reminder.creator_id)
expect(notification.resource).to eq(reminder.remindable)
expect(notification.reason).to eq("reminder")
Expand Down

0 comments on commit 4c01600

Please sign in to comment.