Merge branch 'develop' into adiDev

This commit is contained in:
AdisakKanthawilang 2024-05-17 09:51:02 +07:00
commit 243b5d3f4f
2 changed files with 5 additions and 1 deletions

View file

@ -67,7 +67,7 @@ export class ProfileSalaryEmployeeController extends Controller {
}
const dest_item = await this.salaryRepo.findOne({
where: { profileId: body.profileEmployeeId },
where: { profileEmployeeId: body.profileEmployeeId },
order: { order: "DESC" },
});

View file

@ -148,6 +148,10 @@ export class ProfileSalary extends EntityBase {
@ManyToOne(() => Profile, (profile) => profile.profileSalary)
@JoinColumn({ name: "profileId" })
profile: Profile;
@ManyToOne(() => ProfileEmployee, (ProfileEmployee) => ProfileEmployee.profileSalarys)
@JoinColumn({ name: "profileEmployeeId" })
profileEmployee: ProfileEmployee;
}
export class CreateProfileSalary {