From b05554937571f6d312452bab90622ab5f80d6306 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 29 Feb 2024 11:24:33 +0700 Subject: [PATCH] fix snapshot error --- src/controllers/SalaryPeriodController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index 017e40d..5d9272c 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -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) {