Skip to content

Commit

Permalink
fix: deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammeds1992 committed Jul 24, 2023
1 parent 74d71f2 commit 8f47e41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/restapi/src/lib/chat/getGroupByName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export const getGroupByName = async (
): Promise<GroupDTO> => {
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`);
}
Expand Down

0 comments on commit 8f47e41

Please sign in to comment.