Skip to content

Commit

Permalink
fix(tasks): quick fix on model to authorize empty strings 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed May 21, 2019
1 parent 4e3943e commit fd0ddb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tasks/models/tasks.schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Joi = require('joi');
*/
const TasksSchema = Joi.object().keys({
title: Joi.string().trim().default('').required(),
description: Joi.string().default('').required(),
description: Joi.string().allow('').default(''),
user: Joi.string().trim().default(''),
});

Expand Down

0 comments on commit fd0ddb8

Please sign in to comment.