#2259
All checks were successful
Build & Deploy on Dev / build (push) Successful in 50s

This commit is contained in:
Adisak 2026-01-29 14:10:11 +07:00
parent 69acf3bb0b
commit d36c4c931c

View file

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