fix: condition not working

This commit is contained in:
Methapon2001 2025-01-09 10:38:14 +07:00
parent 07d796251b
commit a0f20970ae

View file

@ -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,