forked from DebaucheryLibrarian/traxxx
Added country filter for actors.
This commit is contained in:
@@ -292,6 +292,7 @@ function initActorActions(store, router) {
|
||||
query,
|
||||
gender,
|
||||
age,
|
||||
country,
|
||||
dob,
|
||||
naturalBoobs,
|
||||
boobSize,
|
||||
@@ -325,12 +326,13 @@ function initActorActions(store, router) {
|
||||
` : '';
|
||||
|
||||
const dobFilter = dob ? `dateOfBirth: { equalTo: "${dob}" }` : '';
|
||||
const countryFilter = country ? `countryByBirthCountryAlpha2: { alpha2: { equalTo: "${country}" } }` : '';
|
||||
|
||||
const heightFilter = height ? `height: { greaterThanOrEqualTo: ${height[0]}, lessThanOrEqualTo: ${height[1]} }` : '';
|
||||
const weightFilter = weight ? `weight: { greaterThanOrEqualTo: ${weight[0]}, lessThanOrEqualTo: ${weight[1]} }` : '';
|
||||
const cupFilter = boobSize ? `cup: { greaterThanOrEqualTo: "${boobSize[0]}", lessThanOrEqualTo: "${boobSize[1]}" }` : '';
|
||||
|
||||
const { connection: { actors, totalCount } } = await graphql(`
|
||||
const { connection: { actors, totalCount }, countries } = await graphql(`
|
||||
query Actors(
|
||||
$query: String
|
||||
$limit: Int,
|
||||
@@ -355,6 +357,7 @@ function initActorActions(store, router) {
|
||||
${heightFilter}
|
||||
${weightFilter}
|
||||
${cupFilter}
|
||||
${countryFilter}
|
||||
naturalBoobs: {
|
||||
equalTo: $naturalBoobs
|
||||
}
|
||||
@@ -407,6 +410,11 @@ function initActorActions(store, router) {
|
||||
${actorStashesFields}
|
||||
}
|
||||
}
|
||||
countries {
|
||||
alpha2
|
||||
name
|
||||
alias
|
||||
}
|
||||
}
|
||||
`, {
|
||||
query,
|
||||
@@ -420,6 +428,7 @@ function initActorActions(store, router) {
|
||||
return {
|
||||
actors: actors.map(actor => curateActor(actor)),
|
||||
totalCount,
|
||||
countries,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user