automation and view updates
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
module AutomationService
|
||||
class EmployerUpdate
|
||||
|
||||
def initialize(pl_plan_key, full_sync = false)
|
||||
@pl_plan_key = pl_plan_key
|
||||
def initialize(employer_identifier, full_sync = false)
|
||||
@employer_identifier = employer_identifier
|
||||
@full_sync = full_sync
|
||||
end
|
||||
|
||||
def call
|
||||
# employer = Employer.includes(:id_card_setup).find_by(pl_plan_key: @pl_plan_key)
|
||||
# employer = Employer.includes(:id_card_setup).find_by(employer_identifier: @employer_identifier)
|
||||
# card_setup = employer.id_card_setup
|
||||
UpdateEmployerJob.new.perform(@pl_plan_key, {}, @full_sync)
|
||||
UpdateEmployerJob.new.perform(employer_identifier: @employer_identifier, full_sync: @full_sync)
|
||||
# if employer.present?
|
||||
# employer.save
|
||||
# else
|
||||
|
||||
Reference in New Issue
Block a user