@ -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
@ -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)
]