mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
DEV: Fix race condition when enqueuing edit wiki-ed notification.
This commit is contained in:
parent
636b75fa16
commit
a36fe019bb
@ -115,10 +115,12 @@ class PostActionNotifier
|
||||
end
|
||||
|
||||
if user_ids.present?
|
||||
Jobs.enqueue(:notify_post_revision,
|
||||
user_ids: user_ids,
|
||||
post_revision_id: post_revision.id
|
||||
)
|
||||
DB.after_commit do
|
||||
Jobs.enqueue(:notify_post_revision,
|
||||
user_ids: user_ids,
|
||||
post_revision_id: post_revision.id
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user