From b14d2d4a4663c2bb969a32e778daae836d7d69e6 Mon Sep 17 00:00:00 2001 From: kittapath Date: Wed, 9 Oct 2024 13:13:47 +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 26f5a20f..4aa78e2b 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -3429,10 +3429,10 @@ export class ProfileController extends Controller { }, relations: ["orgChild1"], }); - if (!posMasters) { + if (posMasters == null || posMasters.orgRoot == null) { return new HttpSuccess(false); } - return new HttpSuccess(posMasters.orgChild1.isOfficer); + return new HttpSuccess(posMasters); } /**