mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
rework review comments
This commit is contained in:
parent
50baed9149
commit
cf9ef95b5b
@ -494,7 +494,7 @@ describe('CommunityResolver', () => {
|
||||
}),
|
||||
).resolves.toMatchObject({
|
||||
data: {
|
||||
getCommunityByUuid: {
|
||||
community: {
|
||||
id: homeCom?.id,
|
||||
foreign: homeCom?.foreign,
|
||||
name: homeCom?.name,
|
||||
|
||||
@ -43,7 +43,7 @@ export class CommunityResolver {
|
||||
|
||||
@Authorized([RIGHTS.COMMUNITY_BY_UUID])
|
||||
@Query(() => Community)
|
||||
async getCommunityByUuid(@Arg('communityUuid') communityUuid: string): Promise<Community> {
|
||||
async community(@Arg('communityUuid') communityUuid: string): Promise<Community> {
|
||||
const com: DbCommunity | null = await getCommunityByUuid(communityUuid)
|
||||
if (!com) {
|
||||
throw new LogError('community not found', communityUuid)
|
||||
|
||||
@ -136,7 +136,7 @@ export const communitiesQuery = gql`
|
||||
|
||||
export const getCommunityByUuidQuery = gql`
|
||||
query ($communityUuid: String!) {
|
||||
getCommunityByUuid(communityUuid: $communityUuid) {
|
||||
community(communityUuid: $communityUuid) {
|
||||
id
|
||||
foreign
|
||||
name
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user