From a5a14f6c76686e5b7eaafad683be8ad34ecef1ff Mon Sep 17 00:00:00 2001 From: ankitsridhar16 Date: Mon, 23 Jan 2023 20:21:44 +0530 Subject: [PATCH] chore: applied review changes for resolvers --- .../src/user-history/user-history.resolver.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/hoppscotch-backend/src/user-history/user-history.resolver.ts b/packages/hoppscotch-backend/src/user-history/user-history.resolver.ts index 8612df1a3..8b64e5af0 100644 --- a/packages/hoppscotch-backend/src/user-history/user-history.resolver.ts +++ b/packages/hoppscotch-backend/src/user-history/user-history.resolver.ts @@ -36,7 +36,7 @@ export class UserHistoryResolver { resMetadata: string, @Args({ name: 'reqType', - description: 'string that denotes type of request REST or GQL', + description: 'Request type, REST or GQL', }) reqType: string, ): Promise { @@ -54,11 +54,11 @@ export class UserHistoryResolver { description: 'Stars/Unstars a REST/GQL request in user history', }) @UseGuards(GqlAuthGuard) - async starUnstarRequestInHistory( + async toggleHistoryStarStatus( @GqlUser() user: User, @Args({ name: 'id', - description: 'request id in history', + description: 'ID of User History', }) id: string, ): Promise { @@ -76,7 +76,7 @@ export class UserHistoryResolver { @GqlUser() user: User, @Args({ name: 'id', - description: 'request id in history', + description: 'ID of User History', }) id: string, ): Promise { @@ -95,7 +95,7 @@ export class UserHistoryResolver { @GqlUser() user: User, @Args({ name: 'reqType', - description: 'string that denotes type of request REST or GQL', + description: 'Request type, REST or GQL', }) reqType: string, ): Promise {