Fix: #421 リスト新着投稿通知処理を、リードレプリカの中から外す (#424)

This commit is contained in:
KMY(雪あすか) 2024-01-05 09:07:56 +09:00 committed by GitHub
parent 2c5c068365
commit a95c167dd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,8 @@ class FeedInsertWorker
with_read_replica do
check_and_insert
end
perform_notify_for_list if !feed_filtered? && notify_for_list?
rescue ActiveRecord::RecordNotFound
true
end
@ -39,7 +41,6 @@ class FeedInsertWorker
else
perform_push
perform_notify if notify?
perform_notify_for_list if notify_for_list?
end
end