We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0cd4f5 commit 66fe12eCopy full SHA for 66fe12e
1 file changed
apps/worker/src/v3/fields/presences.ts
@@ -98,8 +98,8 @@ export default class Presences extends MongoDBCaching {
98
query["metadata.contributors.id"] = args.contributor.trim();
99
100
if (args.query?.trim()) {
101
- if (args.query.trim().length < 3)
102
- throw new UserInputError("Query must be at least 3 characters long.");
+ if (args.query.trim().length === 0)
+ throw new UserInputError("Query must not be empty.");
103
104
query["metadata.service"] = new RegExp(args.query.trim(), "i");
105
}
0 commit comments