From a0f20970aefdb40a2cae00920dfc4b0a294ff0a4 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 9 Jan 2025 10:38:14 +0700 Subject: [PATCH] fix: condition not working --- src/controllers/06-request-list-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/06-request-list-controller.ts b/src/controllers/06-request-list-controller.ts index f8a008c..53b388f 100644 --- a/src/controllers/06-request-list-controller.ts +++ b/src/controllers/06-request-list-controller.ts @@ -330,7 +330,7 @@ export class RequestListController extends Controller { } const where = { - stepStatus: readyToTask || workStatus ? statusCondition : undefined, + stepStatus: readyToTask || cancelOnly || workStatus ? statusCondition : undefined, creditNote: cancelOnly ? null : undefined, request: { id: requestDataId,