Modified network releases query to accomodate date sorting. Showing upcoming releases first to last.
This commit is contained in:
@@ -52,6 +52,7 @@ function initActorActions(store, _router) {
|
||||
$limit:Int = 1000,
|
||||
$after:Date = "1900-01-01",
|
||||
$before:Date = "2100-01-01",
|
||||
$orderBy:[ReleasesActorsOrderBy!]
|
||||
) {
|
||||
actor: actorBySlug(slug: $actorSlug) {
|
||||
id
|
||||
@@ -120,7 +121,7 @@ function initActorActions(store, _router) {
|
||||
}
|
||||
},
|
||||
first: $limit,
|
||||
orderBy: RELEASE_BY_RELEASE_ID__DATE_DESC,
|
||||
orderBy: $orderBy
|
||||
) {
|
||||
release {
|
||||
id
|
||||
@@ -151,6 +152,7 @@ function initActorActions(store, _router) {
|
||||
limit,
|
||||
after: store.getters.after,
|
||||
before: store.getters.before,
|
||||
orderBy: store.state.ui.range === 'upcoming' ? 'RELEASE_BY_RELEASE_ID__DATE_ASC' : 'RELEASE_BY_RELEASE_ID__DATE_DESC',
|
||||
});
|
||||
|
||||
return curateActor(actor);
|
||||
|
||||
Reference in New Issue
Block a user