fix: update team shouldnot create new user
This commit is contained in:
@@ -48,16 +48,9 @@ export async function getServerUserEvaluation() {
|
||||
try {
|
||||
const evaluationService = new EvaluationService();
|
||||
|
||||
// Récupérer d'abord le profil utilisateur via UUID
|
||||
const userProfile = await evaluationService.getUserByUuid(userUuid);
|
||||
|
||||
if (!userProfile) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Puis charger l'évaluation avec le profil
|
||||
const userEvaluation = await evaluationService.loadUserEvaluation(
|
||||
userProfile
|
||||
// Charger directement l'évaluation par UUID
|
||||
const userEvaluation = await evaluationService.loadUserEvaluationByUuid(
|
||||
userUuid
|
||||
);
|
||||
|
||||
return userEvaluation;
|
||||
|
||||
Reference in New Issue
Block a user