fix: cast TypeORM update pour débloquer le build Nest
Partial<Entity> incompatible avec QueryDeepPartialEntity après enrichissement Users.preferences (#214). Cast local minimal. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -157,7 +157,7 @@ export class AssistantesMaternellesService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Object.keys(amPatch).length > 0) {
|
if (Object.keys(amPatch).length > 0) {
|
||||||
await this.assistantesMaternelleRepository.update(amUserId, amPatch);
|
await this.assistantesMaternelleRepository.update(amUserId, amPatch as any);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.findOne(amUserId);
|
return this.findOne(amUserId);
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ export class EnfantsService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.childrenRepository.update(id, patch);
|
await this.childrenRepository.update(id, patch as any);
|
||||||
return this.findOne(id, currentUser);
|
return this.findOne(id, currentUser);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user