From 53d12da71777cf309eb7d5586ea3c1b0ea31681e Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Fri, 1 Mar 2024 14:53:25 +0700 Subject: [PATCH] fix --- src/controllers/SalaryPeriodController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index 9785393..4f54b2a 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -362,7 +362,7 @@ export class SalaryPeriodController extends Controller { .createQueryBuilder("salaryProfile") .select('SUM(salaryProfile.amountUse)', 'totalAmount') .where({ - salaryOrgId: salaryProfile?.salaryOrg.id, + salaryOrgId: salaryOrg.id, type: 'FULL', }) .getRawOne(); @@ -708,7 +708,7 @@ export class SalaryPeriodController extends Controller { .createQueryBuilder("salaryProfile") .select('SUM(salaryProfile.amountUse)', 'totalAmount') .where({ - salaryOrgId: salaryProfile?.salaryOrg.id, + salaryOrgId: salaryOrg.id, type: 'FULL', }) .getRawOne();