We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to receive Groups List Data.
It always shows null in response.
The text was updated successfully, but these errors were encountered:
[Update]
Here is the updated code in Groups.js File
const groups = yield database_1.prisma.contact.findMany({ cursor: cursor ? { pkId: Number(cursor) } : undefined, take: Number(limit), skip: cursor ? 1 : 0, where: { id: { endsWith: "g.us" }, // Only groups, since group IDs in WhatsApp end with "g.us" sessionId, AND: search ? { name: { contains: String(search), }, } : {}, // Only add this condition if 'search' is provided }, });
It works fine
Sorry, something went wrong.
No branches or pull requests
Unable to receive Groups List Data.
It always shows null in response.
The text was updated successfully, but these errors were encountered: