fix: update team shouldnot create new user

This commit is contained in:
Julien Froidefond
2025-08-22 12:15:36 +02:00
parent 76015510f3
commit 90c2f25ec7
3 changed files with 186 additions and 30 deletions

View File

@@ -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;