mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Story#115693873 - Job's initiator may be nil for migration period
This commit is contained in:
parent
2f9a9bd680
commit
b03e6c01ac
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
class DomainDeleteConfirmJob < Que::Job
|
class DomainDeleteConfirmJob < Que::Job
|
||||||
def run(domain_id, action, initiator)
|
def run(domain_id, action, initiator = nil)
|
||||||
::PaperTrail.whodunnit = "job - #{self.class.name} - #{action}"
|
::PaperTrail.whodunnit = "job - #{self.class.name} - #{action}"
|
||||||
# it's recommended to keep transaction against job table as short as possible.
|
# it's recommended to keep transaction against job table as short as possible.
|
||||||
ActiveRecord::Base.transaction do
|
ActiveRecord::Base.transaction do
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
class DomainUpdateConfirmJob < Que::Job
|
class DomainUpdateConfirmJob < Que::Job
|
||||||
def run(domain_id, action, initiator)
|
def run(domain_id, action, initiator = nil)
|
||||||
::PaperTrail.whodunnit = "job - #{self.class.name} - #{action} by #{initiator}"
|
::PaperTrail.whodunnit = "job - #{self.class.name} - #{action} by #{initiator}"
|
||||||
# it's recommended to keep transaction against job table as short as possible.
|
# it's recommended to keep transaction against job table as short as possible.
|
||||||
ActiveRecord::Base.transaction do
|
ActiveRecord::Base.transaction do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue