trim usernames, list names, todos,

change jwt expiration to in 120 days
This commit is contained in:
2018-06-01 21:03:15 +03:00
parent ca6281e2a6
commit 5747b9ade3
3 changed files with 4 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ const TodoSchema = Schema({
required: true,
minLength: 1,
maxLength: 300,
trim: true,
},
list: { type: Schema.Types.ObjectId, ref: 'TodoList', required: true },
user: { type: Schema.Types.ObjectId, ref: 'User', required: true },