mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 18:58:10 +00: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…
x
Reference in New Issue
Block a user