Skip to content

Commit

Permalink
fix(user): fix optionnal 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed May 5, 2020
1 parent aab5668 commit f76b66f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/users/models/user.schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const UserSchema = Joi.object().keys({
bio: Joi.string().alphanum().min(1).max(200)
.trim()
.default('')
.optionnal(),
.optional(),
email: Joi.string().email({ minDomainAtoms: 2 }),
avatar: Joi.string().trim().default(''),
roles: Joi.array().items(Joi.string().valid(config.whitelists.users.roles)).min(1).default(['user']),
Expand Down

0 comments on commit f76b66f

Please sign in to comment.