check workflow

This commit is contained in:
kittapath 2024-10-22 08:20:45 +07:00
parent 4c2188a363
commit 32b0aa325d
74 changed files with 529 additions and 285 deletions

View file

@ -713,6 +713,7 @@ export class WorkflowController extends Controller {
@Body()
body: {
refId: string;
sysName: string;
},
) {
const profile = await this.profileRepo.findOne({
@ -726,6 +727,7 @@ export class WorkflowController extends Controller {
where: {
states: { stateUserComments: { profile: { keycloak: req.user.sub } } },
refId: body.refId,
sysName: body.sysName,
},
});
if (!profileOfficer) throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลสิทธิ์");