Skip to content

Commit

Permalink
change the description
Browse files Browse the repository at this point in the history
  • Loading branch information
HrithikMittal authored Jun 20, 2020
1 parent e2e83ac commit 32bd81f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class UserController {
@post('/users/signup', {
responses: {
'200': {
description: 'User Signup route',
description: 'User model instance',
content: {
'application/json': {
schema: {
Expand All @@ -87,7 +87,7 @@ export class UserController {
): Promise<User> {
const password = await hash(newUserRequest.password, await genSalt());
delete newUserRequest.password;
var savedUser = await this.userRepository.create(newUserRequest);
const savedUser = await this.userRepository.create(newUserRequest);

await this.userRepository.userCredentials(savedUser.id).create({password});

Expand Down

0 comments on commit 32bd81f

Please sign in to comment.