apihub icon indicating copy to clipboard operation
apihub copied to clipboard

BUG: Incorrect operator for creating a group chat

Open kumar-kanujia opened this issue 6 months ago • 3 comments

Describe the bug

For Chat API "POST:host//api/v1/chats/group/" In file src\controllers\apps\chat-app\chat.controllers.js at line 231 the comparison operator should also use a "="

Image

To Reproduce

No response

Expected behavior

No response

Screenshots

No response

OS

No response

OS Version

No response

Client

No response

Additional context or Information

No response

kumar-kanujia avatar May 18 '25 17:05 kumar-kanujia

@kumar-kanujia , is not the length of array starts from Zero , then there is no need for "=" , i think.

anuj123upadhyay avatar May 19 '25 10:05 anuj123upadhyay

Hi! I’d like to work on this issue. I looked at line 231, and it seems to correctly check for duplicates and validate minimum members. Could you please confirm if the bug still exists or point me to where the operator issue occurs?

IshaSah24 avatar May 26 '25 15:05 IshaSah24

Hi @hiteshchoudhary,

Have fixed the issue

safayavatsal avatar Oct 28 '25 11:10 safayavatsal