Rename deadline to due date, update dependencies
This commit is contained in:
@@ -25,7 +25,7 @@ module.exports = {
|
||||
isNotEmptyString: true,
|
||||
allowNull: true
|
||||
},
|
||||
deadline: {
|
||||
dueDate: {
|
||||
type: 'string',
|
||||
custom: value => moment(value, moment.ISO_8601, true).isValid()
|
||||
},
|
||||
@@ -66,7 +66,7 @@ module.exports = {
|
||||
'position',
|
||||
'name',
|
||||
'description',
|
||||
'deadline',
|
||||
'dueDate',
|
||||
'timer'
|
||||
]);
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ module.exports = {
|
||||
isNotEmptyString: true,
|
||||
allowNull: true
|
||||
},
|
||||
deadline: {
|
||||
dueDate: {
|
||||
type: 'string',
|
||||
custom: value => moment(value, moment.ISO_8601, true).isValid(),
|
||||
allowNull: true
|
||||
@@ -87,7 +87,7 @@ module.exports = {
|
||||
'position',
|
||||
'name',
|
||||
'description',
|
||||
'deadline',
|
||||
'dueDate',
|
||||
'timer',
|
||||
'isSubscribed'
|
||||
]);
|
||||
|
||||
@@ -24,8 +24,9 @@ module.exports = {
|
||||
isNotEmptyString: true,
|
||||
allowNull: true
|
||||
},
|
||||
deadline: {
|
||||
type: 'ref'
|
||||
dueDate: {
|
||||
type: 'ref',
|
||||
columnName: 'due_date'
|
||||
},
|
||||
timer: {
|
||||
type: 'json'
|
||||
|
||||
Reference in New Issue
Block a user