no message

This commit is contained in:
Kittapath 2024-07-31 09:43:23 +07:00
parent 99187d08b5
commit 603602adbc
2 changed files with 696 additions and 690 deletions

File diff suppressed because it is too large Load diff

View file

@ -81,7 +81,7 @@ export class PermissionController extends Controller {
...getDetail, ...getDetail,
roles: roleAttrData, roles: roleAttrData,
}; };
redisClient.set("role_" + request.user.sub, JSON.stringify(reply)); redisClient.setex("role_" + request.user.sub, 86400, JSON.stringify(reply));
} }
return new HttpSuccess(reply); return new HttpSuccess(reply);
} }
@ -129,7 +129,7 @@ export class PermissionController extends Controller {
} }
const roleAttrData = await this.authRoleAttrRepo.find({ const roleAttrData = await this.authRoleAttrRepo.find({
select: ["authSysId"], select: ["authSysId"],
where: { authRoleId: authRole.id }, where: { authRoleId: authRole.id, attrIsList: true },
}); });
const getList = await this.authSysRepo.find({ const getList = await this.authSysRepo.find({
@ -150,8 +150,8 @@ export class PermissionController extends Controller {
}; };
}) })
.sort((a, b) => a.order - b.order); .sort((a, b) => a.order - b.order);
console.log(JSON.stringify(reply)); // console.log(JSON.stringify(reply));
redisClient.set("menu_" + request.user.sub, 30, JSON.stringify(reply)); redisClient.setex("menu_" + request.user.sub, 86400, JSON.stringify(reply));
} }
return new HttpSuccess(reply); return new HttpSuccess(reply);