From 8f47e41911ff160228cdab55753a55b6a75d87df Mon Sep 17 00:00:00 2001 From: Mohammed S Date: Mon, 24 Jul 2023 11:41:40 +0530 Subject: [PATCH] fix: deprecation notice --- packages/restapi/src/lib/chat/getGroupByName.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/restapi/src/lib/chat/getGroupByName.ts b/packages/restapi/src/lib/chat/getGroupByName.ts index af6d8827f..36f66b69e 100644 --- a/packages/restapi/src/lib/chat/getGroupByName.ts +++ b/packages/restapi/src/lib/chat/getGroupByName.ts @@ -20,6 +20,9 @@ export const getGroupByName = async ( ): Promise => { const { groupName, env = Constants.ENV.PROD } = options || {}; try { + console.log("============================================="); + console.log("NOTICE: The method 'getGroupByName' will be deprecated on January 1st, 2024. Please update your code to remove this."); + console.log("============================================="); if (groupName == null || groupName.length == 0) { throw new Error(`Group Name cannot be null or empty`); }