chore: updated variable names and comments

This commit is contained in:
Mir Arif Hasan
2023-01-05 15:52:43 +06:00
parent 6b59b9988c
commit 9d20c4c4a9
2 changed files with 5 additions and 5 deletions

View File

@@ -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;
}

View File

@@ -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