From 1a255b60464164d0a571f3245b84ec86632f505b Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Tue, 5 Nov 2024 08:33:25 +0700 Subject: [PATCH] refactor: also allow null as payload value --- src/controllers/04-flow-template-controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/04-flow-template-controller.ts b/src/controllers/04-flow-template-controller.ts index ce7e1b4..8ded548 100644 --- a/src/controllers/04-flow-template-controller.ts +++ b/src/controllers/04-flow-template-controller.ts @@ -31,9 +31,9 @@ type WorkflowPayload = { step: { id?: string; name: string; - detail?: string; - type?: string; - value?: string[]; + detail?: string | null; + type?: string | null; + value?: string[] | null; responsiblePersonId?: string[]; }[]; registeredBranchId?: string;