instead of call Avis table, we now call Experts Procedure table to see the experts list
This commit is contained in:
parent
85242e118b
commit
9b8d2f6fd3
6 changed files with 65 additions and 61 deletions
|
@ -67,16 +67,6 @@ class Avis < ApplicationRecord
|
|||
Avis.find_by(id: avis_id)&.email == email
|
||||
end
|
||||
|
||||
def self.invited_expert_emails(procedure)
|
||||
Avis
|
||||
.joins(dossier: :revision)
|
||||
.left_joins(instructeur: :user)
|
||||
.where(procedure_revisions: { procedure_id: procedure })
|
||||
.map(&:email_to_display)
|
||||
.uniq
|
||||
.sort
|
||||
end
|
||||
|
||||
def spreadsheet_columns
|
||||
[
|
||||
['Dossier ID', dossier_id.to_s],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue