mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
add communities filter on community_uuid
This commit is contained in:
parent
eac3974c34
commit
fa78961da3
@ -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',
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user