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 }); } } }