Skip to content

Commit

Permalink
Fix sync delivery authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
stage-rl committed Dec 8, 2023
1 parent 17a760d commit 8363493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/govbox/authorize_delivery_notification_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def perform(message, upvs_client: UpvsEnvironment.upvs_client)
raise StandardError, "Target message download failed" unless target_message_id

# folder is not available in UPVS get_message response, therefore we're using corresponding inbox as target folder
folder = Govbox::Folder.where(box: message.thread.box, name: "Inbox", system: true)
folder = Govbox::Folder.where(box: message.thread.box, name: "Inbox", system: true).first
Govbox::DownloadMessageJob.perform_later(folder, target_message_id)
end
end

0 comments on commit 8363493

Please sign in to comment.