From 612b3bd82d2827d93b40cbe7c17fb4e8bdf8938e Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Tue, 7 Dec 2021 13:36:59 +0100 Subject: [PATCH] fix(task): use dossier.read_attribute instead of direct read --- .../deployment/20211110093332_set_dossiers_processed_at.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/deployment/20211110093332_set_dossiers_processed_at.rake b/lib/tasks/deployment/20211110093332_set_dossiers_processed_at.rake index 3129c5033..335d7fbe2 100644 --- a/lib/tasks/deployment/20211110093332_set_dossiers_processed_at.rake +++ b/lib/tasks/deployment/20211110093332_set_dossiers_processed_at.rake @@ -7,7 +7,7 @@ namespace :after_party do progress = ProgressReport.new(dossiers.count) dossiers.find_each do |dossier| - if dossier.processed_at != dossier.traitement.processed_at + if dossier.read_attribute(:processed_at) != dossier.traitement.processed_at dossier.update_column(:processed_at, dossier.traitement.processed_at) end progress.inc