forked from Ynov/ptitspas-ynov-back
je veux juste eviter les erreurs 500
This commit is contained in:
parent
5c447c7f2c
commit
ae75a79c2f
@ -84,6 +84,7 @@ export class EnfantsService {
|
|||||||
if (!child) {
|
if (!child) {
|
||||||
throw new NotFoundException(`Id d'enfant : ${id} introuvable`);
|
throw new NotFoundException(`Id d'enfant : ${id} introuvable`);
|
||||||
}
|
}
|
||||||
|
child.parentLinks = child.parentLinks ?? [];
|
||||||
return child;
|
return child;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user