hotfix: fixing type errors in backend graphql layer (HBE-174) (#45)

* chore: added the nest graphql fix for making it use Int over Float

* chore: changed the type of cursor to Int in PaginationArgs

* chore: fixed description mismatch in rootUserCreation functions in UserCollection module

* chore: removed unused title type in UserRequest input-args

* fix: added ID scaler in user-request input type

* fix: added ID scaler in team-invitation and user-history

---------

Co-authored-by: Mir Arif Hasan <arif.ishan05@gmail.com>
This commit is contained in:
Balu Babu
2023-03-15 11:20:45 +05:30
committed by GitHub
parent a779ba5c0e
commit b0d9a934d9
6 changed files with 18 additions and 17 deletions

View File

@@ -10,13 +10,6 @@ export class GetUserRequestArgs extends PaginationArgs {
description: 'Collection ID of the user request',
})
collectionID?: string;
@Field({
nullable: true,
defaultValue: undefined,
description: 'Title of the user request',
})
title?: string;
}
@ArgsType()
@@ -46,13 +39,15 @@ export class MoveUserRequestArgs {
@ArgsType()
export class CreateUserRequestArgs {
@Field({ nullable: false, description: 'Collection ID of the user request' })
@Field(() => ID, {
description: 'Collection ID of the user request',
})
collectionID: string;
@Field({ nullable: false, description: 'Title of the user request' })
@Field({ description: 'Title of the user request' })
title: string;
@Field({ nullable: false, description: 'content/body of the user request' })
@Field({ description: 'content/body of the user request' })
request: string;
type: ReqType;