Skip to content

Commit

Permalink
Update src/graphql/operations/users.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Jul 18, 2024
1 parent 95e7585 commit 9039399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphql/operations/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default async function (parent, args) {
const whereQuery = buildWhereQuery(fields, 'u', where);
const queryStr = whereQuery.query;
const params: any[] = whereQuery.params;
const ids = (where.id_in || [where.id]).filter((id: any) => id);
const ids = (where.id_in || [where.id]).filter(Boolean);
if (Object.keys(where).length > 1) ids.length = 0;

let orderBy = args.orderBy || 'created';
Expand Down

0 comments on commit 9039399

Please sign in to comment.