diff --git a/package/modules/_system/functions/businessEntity.get.helper.ts b/package/modules/_system/functions/businessEntity.get.helper.ts index b853b17..0d6f5bf 100644 --- a/package/modules/_system/functions/businessEntity.get.helper.ts +++ b/package/modules/_system/functions/businessEntity.get.helper.ts @@ -103,9 +103,9 @@ const getEntityDataCount = async ( _options ); - const _count = Array.isArray(rows) ? rows.length : 0; + // const _count = Array.isArray(rows) ? rows.length : 0; - return _count; + return count; } catch (error: any) { WrappidLogger.error("-------------------------------------"); WrappidLogger.error("getBusinessEntity.helper>getEntityData"); @@ -241,9 +241,9 @@ const getEntityDataName = async (entityName: string, query: GenericObject, user? _options ); - const _count = Array.isArray(rows) ? rows.length : 0; + // const _count = Array.isArray(rows) ? rows.length : 0; - return { columns: columns, rows: rows, totalRecords: _count }; + return { columns: columns, rows: rows, totalRecords: count }; } catch (error: any) { WrappidLogger.error("-------------------------------------"); WrappidLogger.error("getBusinessEntity.helper>getEntityData"); diff --git a/package/utils/communication.utils.ts b/package/utils/communication.utils.ts index 9fc28a3..c0d18d3 100644 --- a/package/utils/communication.utils.ts +++ b/package/utils/communication.utils.ts @@ -187,7 +187,8 @@ export function getMessageObject( * @param data Template Variable * @returns message body */ -function createWhatsappMessageBody(template: any, data: any): any { +// eslint-disable-next-line no-unused-vars +export function createWhatsappMessageBody(template: any, data: any): any { // console.log("TEMPLATE", template); const keys = Object.keys(data); let newBody =