Removed references to effective date for older databases.
This commit is contained in:
parent
7b3bdadd44
commit
d8b641e461
|
@ -96,7 +96,7 @@ function initEntitiesActions(store, router) {
|
|||
}
|
||||
}
|
||||
]
|
||||
effectiveDate: {
|
||||
date: {
|
||||
lessThan: $before,
|
||||
greaterThan: $after
|
||||
}
|
||||
|
|
|
@ -7,22 +7,22 @@ const dateRanges = {
|
|||
latest: () => ({
|
||||
after: '1900-01-01',
|
||||
before: dayjs.utc().toDate(),
|
||||
orderBy: ['EFFECTIVE_DATE_DESC'],
|
||||
orderBy: ['DATE_DESC'],
|
||||
}),
|
||||
upcoming: () => ({
|
||||
after: dayjs.utc().toDate(),
|
||||
before: '2100-01-01',
|
||||
orderBy: ['EFFECTIVE_DATE_DESC'],
|
||||
orderBy: ['DATE_DESC'],
|
||||
}),
|
||||
new: () => ({
|
||||
after: '1900-01-01 00:00:00',
|
||||
before: '2100-01-01',
|
||||
orderBy: ['CREATED_AT_DESC', 'EFFECTIVE_DATE_ASC'],
|
||||
orderBy: ['CREATED_AT_DESC', 'DATE_ASC'],
|
||||
}),
|
||||
all: () => ({
|
||||
after: '1900-01-01',
|
||||
before: '2100-01-01',
|
||||
orderBy: ['EFFECTIVE_DATE_DESC'],
|
||||
orderBy: ['DATE_DESC'],
|
||||
}),
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue