mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 21:17:18 -04:00
Fixes to due predicates
This commit is contained in:
parent
5fe58dc9ae
commit
8e911a42f5
1 changed files with 5 additions and 5 deletions
|
@ -368,7 +368,7 @@ BlazeComponent.extendComponent({
|
|||
} else if (operator === 'dueAt' && value === 'overdue') {
|
||||
value = {
|
||||
operator: '$lt',
|
||||
value: moment().format(),
|
||||
value: moment(moment().format('YYYY-MM-DD')).format(),
|
||||
};
|
||||
} else {
|
||||
this.parsingErrors.push({
|
||||
|
@ -380,15 +380,15 @@ BlazeComponent.extendComponent({
|
|||
} else {
|
||||
if (operator === 'dueAt') {
|
||||
value = {
|
||||
operator: '$lte',
|
||||
value: moment()
|
||||
.add(days, duration ? duration : 'days')
|
||||
operator: '$lt',
|
||||
value: moment(moment().format('YYYY-MM-DD'))
|
||||
.add(days + 1, duration ? duration : 'days')
|
||||
.format(),
|
||||
};
|
||||
} else {
|
||||
value = {
|
||||
operator: '$gte',
|
||||
value: moment()
|
||||
value: moment(moment().format('YYYY-MM-DD'))
|
||||
.subtract(days, duration ? duration : 'days')
|
||||
.format(),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue