fix linting

This commit is contained in:
einhornimmond 2024-02-21 15:41:12 +01:00
parent abb8cdcf3d
commit 6ba5d4b635
2 changed files with 9 additions and 2 deletions

View File

@ -17,7 +17,12 @@ import { logger, i18n as localization } from '@test/testSetup'
import { userFactory } from '@/seeds/factory/user'
import { login, updateHomeCommunityQuery } from '@/seeds/graphql/mutations'
import { getCommunities, communitiesQuery, getHomeCommunityQuery, getCommunityByIdentifierQuery } from '@/seeds/graphql/queries'
import {
getCommunities,
communitiesQuery,
getHomeCommunityQuery,
getCommunityByIdentifierQuery,
} from '@/seeds/graphql/queries'
import { peterLustig } from '@/seeds/users/peter-lustig'
import { getCommunityByUuid } from './util/communities'

View File

@ -43,7 +43,9 @@ export class CommunityResolver {
@Authorized([RIGHTS.COMMUNITY_BY_IDENTIFIER])
@Query(() => Community)
async communityByIdentifier(@Arg('communityIdentifier') communityIdentifier: string): Promise<Community> {
async communityByIdentifier(
@Arg('communityIdentifier') communityIdentifier: string,
): Promise<Community> {
const community = await getCommunityByIdentifier(communityIdentifier)
if (!community) {
throw new LogError('community not found', communityIdentifier)