Skip to content

Commit

Permalink
fix(users): fix some comments 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed Nov 19, 2019
1 parent ec59671 commit 80e4b7d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions modules/users/repositories/user.repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ exports.search = (input) => User.find(input).exec();

/**
* @desc Function to update a user in db
* @param {Object} task
* @return {Object} task
* @param {Object} user
* @return {Object} user
*/
exports.update = (user) => new User(user).save();

Expand Down
4 changes: 2 additions & 2 deletions modules/users/services/user.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const removeSensitive = (user) => {
};

/**
* @desc Function to get all task in db
* @return {Promise} All tasks
* @desc Function to get all users in db
* @return {Promise} All users
*/
exports.list = async () => {
const result = await UserRepository.list();
Expand Down
2 changes: 1 addition & 1 deletion modules/users/tests/user.crud.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ describe('User CRUD Tests :', () => {
expect(err).toBeFalsy();
}

// delete task
// delete user
try {
const result = await agent.delete('/api/users')
.expect(200);
Expand Down

0 comments on commit 80e4b7d

Please sign in to comment.