Skip to content

Commit

Permalink
modified the validate.url of the registeruser of the app and of the c…
Browse files Browse the repository at this point in the history
…or by validate.image and updateUserHandler .json to .send b00tc4mp#99
  • Loading branch information
TatiGV committed Aug 20, 2024
1 parent 30bad18 commit 3cfcf17
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default (req, res, next) => {

try {
logic.updateUser(userId, newImage, newName, newSurname, newEmail, newSsername, newPassord)
.then(() => res.status(204).json())
.then(() => res.status(204).send())
.catch(error => next(error))
} catch (error) {
next(error)
Expand Down
2 changes: 1 addition & 1 deletion staff/tatiana-garcia/project/app/logic/registerUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { errors, validate } from '../../com/index.js'
const { SystemError } = errors

export default (image, name, surname, email, username, password, passwordRepeat) => {
validate.url(image, 'image')
validate.image(image, 'image')
validate.name(name, 'name')
validate.surname(surname)
validate.email(email)
Expand Down
2 changes: 1 addition & 1 deletion staff/tatiana-garcia/project/cor/logic/registerUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { validate, errors } from '../../com/index.js'
const { ValidationError, DuplicityError, SystemError } = errors

export default (image, name, surname, email, username, password, passwordRepeat) => {
validate.url(image, 'image')
validate.image(image, 'image')
validate.name(name, 'name')
validate.surname(surname, 'surname')
validate.email(email)
Expand Down

0 comments on commit 3cfcf17

Please sign in to comment.