From 79eb48631b01990aad6c5f1b4d95311ede6a0981 Mon Sep 17 00:00:00 2001 From: Abdul Rahman Reza Date: Mon, 2 Dec 2024 14:00:55 +0700 Subject: [PATCH] update ficing --- src/helpers/common.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/common.ts b/src/helpers/common.ts index 1a50518..f137492 100644 --- a/src/helpers/common.ts +++ b/src/helpers/common.ts @@ -191,9 +191,10 @@ 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; }