recheck เมนู ลูกจ้างชั่วคราว (list to get)

This commit is contained in:
AdisakKanthawilang 2024-08-29 09:49:56 +07:00
parent 271e6964b3
commit 51eaf6b976
19 changed files with 37 additions and 38 deletions

View file

@ -47,7 +47,7 @@ export class ProfileOtherEmployeeTempController extends Controller {
@Get("{profileId}")
public async getOther(@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.otherRepository.find({
where: { profileEmployeeId: profileId },
});
@ -56,7 +56,7 @@ export class ProfileOtherEmployeeTempController extends Controller {
@Get("history/{otherId}")
public async otherHistory(@Path() otherId: string, @Request() req: RequestWithUser) {
await new permission().PermissionList(req, "SYS_REGISTRY_TEMP");
await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
const record = await this.otherHistoryRepository.find({
where: { profileOtherId: otherId },
order: { createdAt: "DESC" },