no message

This commit is contained in:
kittapath 2024-10-28 17:39:13 +07:00
parent 56630602dc
commit 2f378fa4a1

View file

@ -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,