Fix problem with dates in selector being unpickled as a String

This commit is contained in:
John Supplee 2021-02-26 23:19:12 +02:00
parent 223cc07139
commit a63a61e7fc
3 changed files with 61 additions and 24 deletions

View file

@ -363,13 +363,13 @@ BlazeComponent.extendComponent({
if (date) {
value = {
operator: '$lt',
value: date.format(),
value: date.format('YYYY-MM-DD'),
};
}
} else if (operator === 'dueAt' && value === 'overdue') {
value = {
operator: '$lt',
value: moment(moment().format('YYYY-MM-DD')).format(),
value: moment().format('YYYY-MM-DD'),
};
} else {
this.parsingErrors.push({