From 730ebd69071b7c3726a8eac56e43889d3a51035b Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Wed, 11 Sep 2024 14:42:40 +0700 Subject: [PATCH] fix: typo --- src/controllers/03-employee-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/03-employee-controller.ts b/src/controllers/03-employee-controller.ts index e70a98c..284528a 100644 --- a/src/controllers/03-employee-controller.ts +++ b/src/controllers/03-employee-controller.ts @@ -384,7 +384,7 @@ export class EmployeeController extends Controller { ]); if (body.provinceId !== province?.id) throw relationError("Province"); if (body.districtId !== district?.id) throw relationError("District"); - if (body.subDistrictId !== subDistrict?.id) throw relationError("Sub-district"); + if (body.subDistrictId !== subDistrict?.id) throw relationError("SubDistrict"); if (!customerBranch) throw relationError("Customer Branch"); await permissionCheck(req.user, customerBranch.customer.registeredBranch);