no message

This commit is contained in:
Kittapath 2024-04-01 09:40:44 +07:00
parent b048fde3b6
commit 1d4cb81048
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {