From 6fd4d1f9c15be6aa2bbcac42dd7d4f12fe7a08e8 Mon Sep 17 00:00:00 2001 From: Abdul Rahman Reza Date: Mon, 2 Dec 2024 14:01:09 +0700 Subject: [PATCH] update fixing --- src/helpers/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/common.ts b/src/helpers/common.ts index c225170..2a4e6f2 100644 --- a/src/helpers/common.ts +++ b/src/helpers/common.ts @@ -165,7 +165,7 @@ export default class CommonHelper { } let whereAttr = ''; if (whereAttrPre.length > 0) { - whereAttr = whereAttrPre.join(' and ') + (whereAttrPre.length > 0 && param.additional_where != '' ? ' and ' : '') + param.additional_where; + whereAttr = whereAttrPre.join(' and ') + (whereAttrPre.length > 0 && param.additional_where != '' ? ' and ' : '') + (param.additional_where ?? ''); } else { whereAttr += param.additional_where; }