From 17d37edf0b6744c922702f533c6f353893c8ab51 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Thu, 9 Apr 2020 14:46:50 +0200 Subject: [PATCH] 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. --- app/jobs/submission_append_job.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/jobs/submission_append_job.rb b/app/jobs/submission_append_job.rb index 0403000..096e5b0 100644 --- a/app/jobs/submission_append_job.rb +++ b/app/jobs/submission_append_job.rb @@ -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