mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-24 06:35:37 +00:00
make checklist.id required
This commit is contained in:
parent
4deb5ada2f
commit
3ce80bae2a
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ let dailyTodoSchema = () => {
|
|||
completed: {type: Boolean, default: false},
|
||||
text: {type: String, required: false, default: ''}, // required:false because it can be empty on creation
|
||||
_id: false,
|
||||
id: {type: String, default: shared.uuid, validate: [validator.isUUID, 'Invalid uuid.']},
|
||||
id: {type: String, default: shared.uuid, required: true, validate: [validator.isUUID, 'Invalid uuid.']},
|
||||
}],
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue