From 9d20c4c4a94a45dad5310e1d40cd6f9ab30824ca Mon Sep 17 00:00:00 2001 From: Mir Arif Hasan Date: Thu, 5 Jan 2023 15:52:43 +0600 Subject: [PATCH] chore: updated variable names and comments --- .../src/user/dtos/update-user-input.dto.ts | 4 ++-- packages/hoppscotch-backend/src/user/user.service.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/hoppscotch-backend/src/user/dtos/update-user-input.dto.ts b/packages/hoppscotch-backend/src/user/dtos/update-user-input.dto.ts index 41bd3e9ec..b5fd7d0a6 100644 --- a/packages/hoppscotch-backend/src/user/dtos/update-user-input.dto.ts +++ b/packages/hoppscotch-backend/src/user/dtos/update-user-input.dto.ts @@ -19,14 +19,14 @@ export class UpdateUserInput { @Field({ nullable: true, name: 'currentRESTSession', - description: 'JSON string of the session', + description: 'JSON string of the saved REST session', }) currentRESTSession?: string; @Field({ nullable: true, name: 'currentGQLSession', - description: 'JSON string of the session', + description: 'JSON string of the saved GQL session', }) currentGQLSession?: string; } diff --git a/packages/hoppscotch-backend/src/user/user.service.ts b/packages/hoppscotch-backend/src/user/user.service.ts index 3b563476f..cdb1f64e2 100644 --- a/packages/hoppscotch-backend/src/user/user.service.ts +++ b/packages/hoppscotch-backend/src/user/user.service.ts @@ -16,14 +16,14 @@ export class UserService { /** * Update a user's information * @param user User object - * @param updateUserDto Properties to update + * @param updateUserData Properties to update * @returns a Either of User or error */ - async updateUser(user: User, updateUserDto: UpdateUserInput) { + async updateUser(user: User, updateUserData: UpdateUserInput) { try { const updatedUser = await this.prisma.user.update({ where: { uid: user.uid }, - data: updateUserDto, + data: updateUserData, }); // Publish subscription for user updates