chore: updated variable names and comments
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user