From 2f378fa4a18dfa3e9c1a11161c3bfb4bb8014803 Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 28 Oct 2024 17:39:13 +0700 Subject: [PATCH] no message --- src/controllers/ProfileController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index c1f2d13a..d00dd9fd 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -3615,7 +3615,7 @@ export class ProfileController extends Controller { }, relations: ["orgChild1"], }); - if (posMasters == null || posMasters.orgChild1 == null) { + if (posMasters == null) { return new HttpSuccess({ isOfficer: null, rootId: null, @@ -3626,7 +3626,7 @@ export class ProfileController extends Controller { }); } return new HttpSuccess({ - isOfficer: posMasters?.orgChild1?.isOfficer || null, + isOfficer: posMasters?.orgChild1?.isOfficer || false, rootId: posMasters?.orgRootId || null, child1Id: posMasters?.orgChild1Id || null, child2Id: posMasters?.orgChild2Id || null,