chore(rubocop): fix Rails/WhereMissing
This commit is contained in:
parent
f4ad5289cd
commit
1af404c5e7
2 changed files with 3 additions and 5 deletions
|
@ -3,10 +3,8 @@ namespace :hotfix do
|
|||
task dossiers_attestations: :environment do
|
||||
dossiers = Dossier
|
||||
.joins(procedure: :attestation_template)
|
||||
.left_outer_joins(:attestation)
|
||||
.where(attestation_templates: { activated: true },
|
||||
attestations: { id: nil },
|
||||
state: "accepte")
|
||||
.where.missing(:attestation)
|
||||
.where(attestation_templates: { activated: true }, state: "accepte")
|
||||
.where("dossiers.processed_at > '2022-01-24'")
|
||||
progress = ProgressReport.new(dossiers.count)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue