From 0f22605784298a231b4ac9ea99f17675d3964f6b Mon Sep 17 00:00:00 2001 From: Adisak Date: Mon, 20 Oct 2025 18:08:59 +0700 Subject: [PATCH] fix --- src/controllers/PositionController.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/PositionController.ts b/src/controllers/PositionController.ts index 07473ca6..e9f8d99e 100644 --- a/src/controllers/PositionController.ts +++ b/src/controllers/PositionController.ts @@ -2531,11 +2531,11 @@ export class PositionController extends Controller { const childValue = nextChildMap[body.type]; if(_data.privilege === 'NORMAL'){ if (Array.isArray(childValue) && childValue.some(item => item != null)) { - return new HttpSuccess({ data: [{}], total: 0 }); + return new HttpSuccess({ data: [], total: 0 }); } }else if(_data.privilege === 'PARENT'){ if (body.type == 0){ - return new HttpSuccess({ data: [{}], total: 0 }); + return new HttpSuccess({ data: [], total: 0 }); } } else if (_data.privilege === 'CHILD') { const higherChildChecks = [ @@ -2548,7 +2548,7 @@ export class PositionController extends Controller { for (const check of higherChildChecks) { if (Array.isArray(check.child) && check.next == null) { if (check.type.includes(body.type)) { - return new HttpSuccess({ data: [{}], total: 0 }); + return new HttpSuccess({ data: [], total: 0 }); } } }