Remove channel from member_job

pull/9665/head
Oliver Günther 3 years ago
parent 2d6289d8a7
commit dc7b0ff99f
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 2
      app/workers/mails/member_job.rb
  2. 2
      spec/workers/mails/shared/member_job.rb

@ -90,7 +90,7 @@ class Mails::MemberJob < ApplicationJob
return false if message.present?
NotificationSetting
.where(project_id: nil, user_id: user_id, channel: NotificationSetting.channels[:mail])
.where(project_id: nil, user_id: user_id)
.exists?("membership_#{setting}" => false)
end
end

@ -129,7 +129,7 @@ shared_examples 'member job' do
let(:principal) do
FactoryBot.create :user,
notification_settings: [
FactoryBot.build(:mail_notification_setting,
FactoryBot.build(:notification_setting,
NotificationSetting::MEMBERSHIP_ADDED => false,
NotificationSetting::MEMBERSHIP_UPDATED => false)
]

Loading…
Cancel
Save