Always try to append the data to the spreadsheet
Authentication errors will be caught an logged, but it should be tried. Expired tokens will get refreshed if possible.
This commit is contained in:
parent
6bfe8fb485
commit
17d37edf0b
@ -11,10 +11,6 @@ class SubmissionAppendJob < ApplicationJob
|
||||
def perform(*args)
|
||||
submission_id = args.first
|
||||
submission = Submission.find(submission_id)
|
||||
if submission.form.active?
|
||||
submission.append_to_spreadsheet
|
||||
else
|
||||
Rails.logger.error("Inactive form: submission_id=#{submission_id} form_id=#{submission.form_id}")
|
||||
end
|
||||
submission.append_to_spreadsheet
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user