improve request to find an expert
This commit is contained in:
parent
5e0cfbea07
commit
5e88ecc24c
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ class Avis < ApplicationRecord
|
|||
if claimant_type == 'Instructeur' || !tmp_expert_migrated
|
||||
Instructeur.find(claimant_id)
|
||||
else
|
||||
Expert.find(claimant_id).user.expert
|
||||
Expert.find(claimant_id)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue