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:
bumi 2020-04-09 14:46:50 +02:00
parent 6bfe8fb485
commit 17d37edf0b

View File

@ -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