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.
这个提交包含在:
父节点
6bfe8fb485
当前提交
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
|
||||
|
||||
正在加载...
x
在新工单中引用
屏蔽一个用户