Merge branch 'develop' of github.com:Frappet/bma-ehr-salary into develop

This commit is contained in:
Kittapath 2024-02-29 11:29:24 +07:00
commit b8e4e8270b

View file

@ -180,6 +180,7 @@ export class SalaryPeriodController extends Controller {
@Post("change/amount")
async changeAmount(@Body() body: { profileId: string; amount: number }) {
const salaryProfile = await this.salaryProfileRepository.findOne({
relations: ["salaryOrg"],
where: { id: body.profileId },
});
if (!salaryProfile) {