fix query for instructeur tabs count

This commit is contained in:
Lisa Durand 2024-06-13 17:21:35 +02:00
parent 2d66a67564
commit 1441855fe8
No known key found for this signature in database
GPG key ID: 0DF91F2CA1E8B816

View file

@ -253,6 +253,7 @@ class Instructeur < ApplicationRecord
AND follows.unfollowed_at IS NULL
WHERE dossiers.state != 'brouillon'
AND dossiers.groupe_instructeur_id in (:groupe_instructeur_ids)
AND (dossiers.hidden_by_user_at IS NULL OR dossiers.state != 'en_construction' OR dossiers.hidden_by_reason = 'expired')
EOF
sanitized_query = ActiveRecord::Base.sanitize_sql([