Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down
3 changes: 2 additions & 1 deletion package/utils/communication.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
Loading