reverse
This commit is contained in:
parent
fa073242b8
commit
b24a900198
3 changed files with 19 additions and 22 deletions
|
|
@ -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, "ไม่พบข้อมูล");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue