From 23b8909706fe27fbdfdb0a59b387e53df67e77e5 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Mon, 4 Mar 2024 09:26:11 +0700 Subject: [PATCH] fix bug --- src/controllers/SalaryPeriodController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index 4f54b2a..360621d 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -563,6 +563,7 @@ export class SalaryPeriodController extends Controller { @Request() request: { user: Record }, ) { const salaryOrg = await this.salaryOrgRepository.findOne({ + relations:["salaryPeriod"], where: { id: requestBody.id, },