From 9039399e6ef7bbe32da6c91b6214e4dbce07452f Mon Sep 17 00:00:00 2001 From: Wan <495709+wa0x6e@users.noreply.github.com> Date: Thu, 18 Jul 2024 17:36:19 +0400 Subject: [PATCH] Update src/graphql/operations/users.ts --- src/graphql/operations/users.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphql/operations/users.ts b/src/graphql/operations/users.ts index 575765ed..7c2ebbde 100644 --- a/src/graphql/operations/users.ts +++ b/src/graphql/operations/users.ts @@ -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';