mirror of
https://github.com/ditkrg/outboxable.git
synced 2026-01-23 06:16:46 +00:00
Update outbox.rb
This commit is contained in:
parent
35496ea7b5
commit
689d4effe8
@ -21,6 +21,7 @@ class Outbox < ApplicationRecord
|
|||||||
|
|
||||||
def publish
|
def publish
|
||||||
Outboxable::Worker.perform_async(id)
|
Outboxable::Worker.perform_async(id)
|
||||||
|
update(status: :processing, last_attempted_at: 1.minute.from_now)
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_publishing
|
def check_publishing
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user