chore: applied review changes for resolvers

This commit is contained in:
ankitsridhar16
2023-01-23 20:21:44 +05:30
parent 626d703d77
commit a5a14f6c76

View File

@@ -36,7 +36,7 @@ export class UserHistoryResolver {
resMetadata: string, resMetadata: string,
@Args({ @Args({
name: 'reqType', name: 'reqType',
description: 'string that denotes type of request REST or GQL', description: 'Request type, REST or GQL',
}) })
reqType: string, reqType: string,
): Promise<UserHistory> { ): Promise<UserHistory> {
@@ -54,11 +54,11 @@ export class UserHistoryResolver {
description: 'Stars/Unstars a REST/GQL request in user history', description: 'Stars/Unstars a REST/GQL request in user history',
}) })
@UseGuards(GqlAuthGuard) @UseGuards(GqlAuthGuard)
async starUnstarRequestInHistory( async toggleHistoryStarStatus(
@GqlUser() user: User, @GqlUser() user: User,
@Args({ @Args({
name: 'id', name: 'id',
description: 'request id in history', description: 'ID of User History',
}) })
id: string, id: string,
): Promise<UserHistory> { ): Promise<UserHistory> {
@@ -76,7 +76,7 @@ export class UserHistoryResolver {
@GqlUser() user: User, @GqlUser() user: User,
@Args({ @Args({
name: 'id', name: 'id',
description: 'request id in history', description: 'ID of User History',
}) })
id: string, id: string,
): Promise<UserHistory> { ): Promise<UserHistory> {
@@ -95,7 +95,7 @@ export class UserHistoryResolver {
@GqlUser() user: User, @GqlUser() user: User,
@Args({ @Args({
name: 'reqType', name: 'reqType',
description: 'string that denotes type of request REST or GQL', description: 'Request type, REST or GQL',
}) })
reqType: string, reqType: string,
): Promise<number> { ): Promise<number> {