Removed references to effective date for older databases.

This commit is contained in:
DebaucheryLibrarian 2022-02-25 22:20:28 +01:00
parent 7b3bdadd44
commit d8b641e461
2 changed files with 5 additions and 5 deletions

View File

@ -96,7 +96,7 @@ function initEntitiesActions(store, router) {
}
}
]
effectiveDate: {
date: {
lessThan: $before,
greaterThan: $after
}

View File

@ -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'],
}),
};