This commit is contained in:
parent
69acf3bb0b
commit
d36c4c931c
1 changed files with 7 additions and 7 deletions
|
|
@ -1045,11 +1045,11 @@ export class WorkflowController extends Controller {
|
||||||
const processedData = body.isAct
|
const processedData = body.isAct
|
||||||
? data
|
? data
|
||||||
: data.map((x: any) => ({
|
: data.map((x: any) => ({
|
||||||
...x,
|
...x,
|
||||||
posExecutiveNameOrg:
|
posExecutiveNameOrg:
|
||||||
(x.posExecutiveName ?? "") +
|
(x.posExecutiveName ?? "") +
|
||||||
(x.orgChild4 ?? x.orgChild3 ?? x.orgChild2 ?? x.orgChild1 ?? x.orgRoot ?? ""),
|
(x.orgChild4 ?? x.orgChild3 ?? x.orgChild2 ?? x.orgChild1 ?? x.orgRoot ?? ""),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
return new HttpSuccess({ data: processedData, total });
|
return new HttpSuccess({ data: processedData, total });
|
||||||
}
|
}
|
||||||
|
|
@ -1363,7 +1363,7 @@ export class WorkflowController extends Controller {
|
||||||
keycloak: req.user.sub,
|
keycloak: req.user.sub,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (!profile) throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลผู้ใช้งาน");
|
if (!profile) throw new HttpError(HttpStatus.UNAUTHORIZED, "ไม่พบข้อมูลผู้ใช้งาน");
|
||||||
|
|
||||||
const profileOfficer = await this.workflowRepo.findOne({
|
const profileOfficer = await this.workflowRepo.findOne({
|
||||||
where: {
|
where: {
|
||||||
|
|
@ -1372,7 +1372,7 @@ export class WorkflowController extends Controller {
|
||||||
// sysName: body.sysName,
|
// sysName: body.sysName,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (!profileOfficer) throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลสิทธิ์");
|
if (!profileOfficer) throw new HttpError(HttpStatus.FORBIDDEN, "ไม่พบข้อมูลสิทธิ์");
|
||||||
return new HttpSuccess();
|
return new HttpSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue