Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 85942c5d00 1.227.18 2023-06-18 02:29:12 +02:00
DebaucheryLibrarian fe460f7441 Querying entity scenes from top level. 2023-06-18 02:29:10 +02:00
3 changed files with 34 additions and 26 deletions

View File

@ -14,7 +14,7 @@ function initEntitiesActions(store, router) {
}) {
const { before, after, orderBy } = getDateRange(range);
const { entity, batches: [lastBatch] } = await graphql(`
const { entity, connection, batches: [lastBatch] } = await graphql(`
query Entity(
$entitySlug: String!
$entityType: String! = "channel"
@ -84,32 +84,40 @@ function initEntitiesActions(store, router) {
hasLogo
${campaignsFragment}
}
connection: scenesConnection(
first: $limit
offset: $offset
orderBy: $orderBy
filter: {
effectiveDate: {
lessThan: $before,
greaterThan: $after
}
connection: releasesConnection(
first: $limit
offset: $offset
orderBy: $orderBy
filter: {
entity: {
slug: {
equalTo: $entitySlug
}
releasesTagsConnection: {
none: {
tag: {
slug: {
in: $exclude
}
type: {
equalTo: $entityType
}
}
effectiveDate: {
lessThan: $before,
greaterThan: $after
}
releasesTagsConnection: {
none: {
tag: {
slug: {
in: $exclude
}
}
}
}
) {
releases: nodes {
${releaseFields}
}
totalCount
}
}
) {
releases: nodes {
${releaseFields}
}
totalCount
}
${batchFragment}
}
`, {
@ -131,8 +139,8 @@ function initEntitiesActions(store, router) {
}
return {
entity: curateEntity(entity, null, entity.connection.releases, { lastBatch: lastBatch.id }),
totalCount: entity.connection.totalCount,
entity: curateEntity(entity, null, connection.releases, { lastBatch: lastBatch.id }),
totalCount: connection.totalCount,
};
}

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.227.17",
"version": "1.227.18",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.227.17",
"version": "1.227.18",
"license": "ISC",
"dependencies": {
"@casl/ability": "^5.2.2",

View File

@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.227.17",
"version": "1.227.18",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {