add communities filter on community_uuid

This commit is contained in:
Claus-Peter Huebner 2023-09-05 21:19:38 +02:00
parent eac3974c34
commit fa78961da3

View File

@ -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<Community[]> {
const dbCommunities: DbCommunity[] = await DbCommunity.find({
where: { communityUuid: Not(IsNull()) }, //, authenticatedAt: Not(IsNull()) },
order: {
name: 'ASC',
},