From fa78961da33246305aea467fccdbab96b33220b5 Mon Sep 17 00:00:00 2001 From: Claus-Peter Huebner Date: Tue, 5 Sep 2023 21:19:38 +0200 Subject: [PATCH] add communities filter on community_uuid --- backend/src/graphql/resolver/CommunityResolver.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/graphql/resolver/CommunityResolver.ts b/backend/src/graphql/resolver/CommunityResolver.ts index 09553bf24..026871780 100644 --- a/backend/src/graphql/resolver/CommunityResolver.ts +++ b/backend/src/graphql/resolver/CommunityResolver.ts @@ -1,3 +1,4 @@ +import { IsNull, Not } from '@dbTools/typeorm' import { Community as DbCommunity } from '@entity/Community' import { FederatedCommunity as DbFederatedCommunity } from '@entity/FederatedCommunity' import { Resolver, Query, Authorized } from 'type-graphql' @@ -28,6 +29,7 @@ export class CommunityResolver { @Query(() => [Community]) async communities(): Promise { const dbCommunities: DbCommunity[] = await DbCommunity.find({ + where: { communityUuid: Not(IsNull()) }, //, authenticatedAt: Not(IsNull()) }, order: { name: 'ASC', },