fix snapshot error

This commit is contained in:
AdisakKanthawilang 2024-02-29 11:24:33 +07:00
parent 77b8ef8a7d
commit b055549375

View file

@ -176,6 +176,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) {