From 1b84f345e784d0bf99f0ffc98a8f3e47fd7c3113 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Mon, 7 Oct 2024 17:04:53 +0700 Subject: [PATCH] fix: word case --- src/controllers/05-quotation-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 4ff523b..45afdc1 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -174,7 +174,7 @@ export class QuotationController extends Controller { }); return result.reduce>((a, c) => { - a[c.payCondition] = c._count; + a[c.payCondition.charAt(0).toLowerCase() + c.payCondition.slice(1)] = c._count; return a; }, {}); }