From cf9ef95b5b42f342e06ed81b68ac8bab5f1df24a Mon Sep 17 00:00:00 2001 From: Claus-Peter Huebner Date: Fri, 9 Feb 2024 22:35:53 +0100 Subject: [PATCH] rework review comments --- backend/src/graphql/resolver/CommunityResolver.test.ts | 2 +- backend/src/graphql/resolver/CommunityResolver.ts | 2 +- backend/src/seeds/graphql/queries.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/graphql/resolver/CommunityResolver.test.ts b/backend/src/graphql/resolver/CommunityResolver.test.ts index 94bf40a70..e720eb716 100644 --- a/backend/src/graphql/resolver/CommunityResolver.test.ts +++ b/backend/src/graphql/resolver/CommunityResolver.test.ts @@ -494,7 +494,7 @@ describe('CommunityResolver', () => { }), ).resolves.toMatchObject({ data: { - getCommunityByUuid: { + community: { id: homeCom?.id, foreign: homeCom?.foreign, name: homeCom?.name, diff --git a/backend/src/graphql/resolver/CommunityResolver.ts b/backend/src/graphql/resolver/CommunityResolver.ts index dda43a34c..760b982cc 100644 --- a/backend/src/graphql/resolver/CommunityResolver.ts +++ b/backend/src/graphql/resolver/CommunityResolver.ts @@ -43,7 +43,7 @@ export class CommunityResolver { @Authorized([RIGHTS.COMMUNITY_BY_UUID]) @Query(() => Community) - async getCommunityByUuid(@Arg('communityUuid') communityUuid: string): Promise { + async community(@Arg('communityUuid') communityUuid: string): Promise { const com: DbCommunity | null = await getCommunityByUuid(communityUuid) if (!com) { throw new LogError('community not found', communityUuid) diff --git a/backend/src/seeds/graphql/queries.ts b/backend/src/seeds/graphql/queries.ts index 290d93ad6..6bd106174 100644 --- a/backend/src/seeds/graphql/queries.ts +++ b/backend/src/seeds/graphql/queries.ts @@ -136,7 +136,7 @@ export const communitiesQuery = gql` export const getCommunityByUuidQuery = gql` query ($communityUuid: String!) { - getCommunityByUuid(communityUuid: $communityUuid) { + community(communityUuid: $communityUuid) { id foreign name