From 1d4cb810484d267ea618c76fc127e036d0a8d40f Mon Sep 17 00:00:00 2001 From: Kittapath Date: Mon, 1 Apr 2024 09:40:44 +0700 Subject: [PATCH] no message --- src/controllers/SalaryPeriodController.ts | 2 +- src/controllers/SalaryPeriodEmployeeController.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index 5d9336b..9acc35e 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -571,7 +571,7 @@ export class SalaryPeriodController extends Controller { @Post("change/group") async changeGroup(@Body() body: { profileId: string; groupId: string }) { const salaryProfile = await this.salaryProfileRepository.findOne({ - relations: ["salaryOrg", "salaryOrg.salaryPeriod"], + // relations: ["salaryOrg", "salaryOrg.salaryPeriod"], where: { id: body.profileId }, }); if (!salaryProfile) { diff --git a/src/controllers/SalaryPeriodEmployeeController.ts b/src/controllers/SalaryPeriodEmployeeController.ts index 99cca8d..4f2d818 100644 --- a/src/controllers/SalaryPeriodEmployeeController.ts +++ b/src/controllers/SalaryPeriodEmployeeController.ts @@ -540,7 +540,7 @@ export class SalaryPeriodEmployeeController extends Controller { @Post("change/group") async changeGroup(@Body() body: { profileId: string; groupId: string }) { const salaryProfile = await this.salaryProfileRepository.findOne({ - relations: ["salaryOrg", "salaryOrg.salaryPeriod"], + // relations: ["salaryOrg", "salaryOrg.salaryPeriod"], where: { id: body.profileId }, }); if (!salaryProfile) {