From fda22f4a31ec7e9791b6199563d6afb9bf2385d9 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:33:10 +0700 Subject: [PATCH] feat: add support for step count store --- src/controllers/04-service-controller.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/controllers/04-service-controller.ts b/src/controllers/04-service-controller.ts index 80b5f2b..f6e0f47 100644 --- a/src/controllers/04-service-controller.ts +++ b/src/controllers/04-service-controller.ts @@ -69,6 +69,10 @@ type ServiceCreate = { * @isInt */ installmentNo?: number; + /** + * @isInt + */ + stepCount?: number; attributes?: { [key: string]: any }; }[]; attributes?: { [key: string]: any }; @@ -99,6 +103,10 @@ type ServiceUpdate = { * @isInt */ installmentNo?: number; + /** + * @isInt + */ + stepCount?: number; attributes?: { [key: string]: any }; }[]; attributes?: { [key: string]: any }; @@ -328,6 +336,7 @@ export class ServiceController extends Controller { create: w.product.map((p, pIdx) => ({ productId: p.id, installmentNo: p.installmentNo, + stepCount: p.stepCount, order: pIdx + 1, })), }, @@ -416,6 +425,7 @@ export class ServiceController extends Controller { data: w.product.map((p, pIdx) => ({ productId: p.id, installmentNo: p.installmentNo, + stepCount: p.stepCount, order: pIdx + 1, })), skipDuplicates: true,