rework review comments

This commit is contained in:
Claus-Peter Huebner 2024-02-09 22:35:53 +01:00
parent 50baed9149
commit cf9ef95b5b
3 changed files with 3 additions and 3 deletions

View File

@ -494,7 +494,7 @@ describe('CommunityResolver', () => {
}),
).resolves.toMatchObject({
data: {
getCommunityByUuid: {
community: {
id: homeCom?.id,
foreign: homeCom?.foreign,
name: homeCom?.name,

View File

@ -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)

View File

@ -136,7 +136,7 @@ export const communitiesQuery = gql`
export const getCommunityByUuidQuery = gql`
query ($communityUuid: String!) {
getCommunityByUuid(communityUuid: $communityUuid) {
community(communityUuid: $communityUuid) {
id
foreign
name