refactor: removing unused import, commented codes, improved cursor query (#69)

* chore: refactor code in some modules

* refactor: getTeamsOfUser functino

* chore: remove unused import

* chore: revert some changes
This commit is contained in:
Mir Arif Hasan
2023-04-06 20:24:10 +06:00
committed by GitHub
parent ffc08227dd
commit 696cf8490b
14 changed files with 22 additions and 72 deletions

View File

@@ -1,4 +1,4 @@
import { ObjectType, ID, Field, ResolveField } from '@nestjs/graphql';
import { ObjectType } from '@nestjs/graphql';
@ObjectType()
export class Admin {}

View File

@@ -38,7 +38,9 @@ export class AdminResolver {
private adminService: AdminService,
private readonly pubsub: PubSubService,
) {}
// Query
/* Query */
@Query(() => Admin, {
description: 'Gives details of the admin executing this query',
})
@@ -229,7 +231,8 @@ export class AdminResolver {
return this.adminService.getTeamRequestsCount();
}
// Mutations
/* Mutations */
@Mutation(() => InvitedUser, {
description: 'Invite a user to the infra using email',
})

View File

@@ -20,6 +20,7 @@ export class ChangeUserRoleInTeamArgs {
})
newRole: TeamMemberRole;
}
@ArgsType()
export class AddUserToTeamArgs {
@Field(() => ID, {