Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit 66fe12e

Browse files
committed
chore: remove query limit
1 parent c0cd4f5 commit 66fe12e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/worker/src/v3/fields/presences.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ export default class Presences extends MongoDBCaching {
9898
query["metadata.contributors.id"] = args.contributor.trim();
9999

100100
if (args.query?.trim()) {
101-
if (args.query.trim().length < 3)
102-
throw new UserInputError("Query must be at least 3 characters long.");
101+
if (args.query.trim().length === 0)
102+
throw new UserInputError("Query must not be empty.");
103103

104104
query["metadata.service"] = new RegExp(args.query.trim(), "i");
105105
}

0 commit comments

Comments
 (0)