improve request to find an expert

This commit is contained in:
kara Diaby 2021-03-16 16:57:58 +01:00
parent 5e0cfbea07
commit 5e88ecc24c

View file

@ -63,7 +63,7 @@ class Avis < ApplicationRecord
if claimant_type == 'Instructeur' || !tmp_expert_migrated if claimant_type == 'Instructeur' || !tmp_expert_migrated
Instructeur.find(claimant_id) Instructeur.find(claimant_id)
else else
Expert.find(claimant_id).user.expert Expert.find(claimant_id)
end end
end end