fix profile_development

This commit is contained in:
AdisakKanthawilang 2024-08-28 18:18:23 +07:00
parent 057bda967f
commit 7430c3c86f
2 changed files with 4 additions and 4 deletions

View file

@ -47,7 +47,7 @@ export class ProfileDevelopmentEmployeeTempController extends Controller {
@Get("{profileId}")
public async getDevelopment(@Path() profileId: string, @Request() req: RequestWithUser) {
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
const lists = await this.developmentRepository.find({
where: { profileEmployeeId: profileId },
});
@ -56,7 +56,7 @@ export class ProfileDevelopmentEmployeeTempController extends Controller {
@Get("history/{developmentId}")
public async developmentHistory(@Path() developmentId: string, @Request() req: RequestWithUser) {
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
const record = await this.developmentHistoryRepository.find({
where: { profileDevelopmentId: developmentId },
order: { createdAt: "DESC" },