Skip to content

Commit

Permalink
update job and service names
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-npq committed Jul 6, 2023
1 parent 1a5a482 commit 6a1901e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 0 additions & 6 deletions app/jobs/npq_application_updater_job.rb

This file was deleted.

6 changes: 6 additions & 0 deletions app/jobs/sync_application_status_job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class SyncApplicationStatusJob < ApplicationJob
queue_as :default
def perform(data)
Services::Ecf::ApplicationUpdater.new(data).call
end
end
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Services
module Ecf
class NpqApplicationUpdater
class ApplicationUpdater
def initialize(data)
@data = data
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def handle_response(response)
if response.is_a?(Net::HTTPSuccess)
data = response_data(response)
data["data"].each do |record|
NpqApplicationUpdaterJob.perform_later(record)
SyncApplicationStatusJob.perform_now(record)
end
else
raise "Failed to synchronize application: #{response.message}"
Expand Down

0 comments on commit 6a1901e

Please sign in to comment.