Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
chore: updated variable names and comments
Mir Arif Hasan9d20c4c4a94a
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.tsindex 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.tsindex 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