je veux juste eviter les erreurs 500

This commit is contained in:
sdraris 2025-10-01 19:53:52 +02:00
parent 5c447c7f2c
commit ae75a79c2f

View File

@ -84,6 +84,7 @@ export class EnfantsService {
if (!child) {
throw new NotFoundException(`Id d'enfant : ${id} introuvable`);
}
child.parentLinks = child.parentLinks ?? [];
return child;
}