diff --git a/src/junior/services/junior.service.ts b/src/junior/services/junior.service.ts index 8779101..50586c0 100644 --- a/src/junior/services/junior.service.ts +++ b/src/junior/services/junior.service.ts @@ -60,12 +60,12 @@ export class JuniorService { await this.juniorRepository.createJunior(user.id, { guardianId, relationship: body.relationship, - customerId: childCustomer.id, + customerId: childCustomer!.id, }); this.logger.debug('Creating card For Child'); - await this.cardService.createCardForChild(parentCustomer, childCustomer, body.cardColor, body.cardColor); + await this.cardService.createCardForChild(parentCustomer, childCustomer!, body.cardColor, body.cardColor); this.logger.log(`Junior ${user.id} created successfully`); return this.generateToken(user.id);