This commit is contained in:
AdisakKanthawilang 2025-03-06 18:39:17 +07:00
parent fa073242b8
commit b24a900198
3 changed files with 19 additions and 22 deletions

View file

@ -55,7 +55,6 @@ export class PermissionController extends Controller {
}
let reply = await getAsync("role_" + profile.id);
console.log(">>>reply",reply);
if (reply != null) {
reply = JSON.parse(reply);
} else {
@ -85,12 +84,10 @@ export class PermissionController extends Controller {
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลสิทธิ์");
}
}
console.log(">>>posMaster",posMaster);
const getDetail = await this.authRoleRepo.findOne({
select: ["id", "roleName", "roleDescription"],
where: { id: posMaster.authRoleId },
});
console.log(">>>detail",getDetail);
if (!getDetail) {
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");