From 8b00cda23d4e8abf4f57448cc4851d7626cc98bc Mon Sep 17 00:00:00 2001 From: Abdalhamid Alhamad Date: Sun, 9 Nov 2025 12:25:37 +0300 Subject: [PATCH] Update return value in updateJunior method to fetch updated junior details by ID instead of returning the junior object directly. --- src/junior/services/junior.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/junior/services/junior.service.ts b/src/junior/services/junior.service.ts index bfdafec..b85e716 100644 --- a/src/junior/services/junior.service.ts +++ b/src/junior/services/junior.service.ts @@ -126,7 +126,7 @@ export class JuniorService { setIf(junior, 'relationship', body.relationship); await Promise.all([junior.save(), customer.save(), user.save()]); this.logger.log(`Junior ${juniorId} updated successfully`); - return junior; + return this.findJuniorById(juniorId, false, guardianId); } @Transactional()