Compare commits
2 Commits
67365507b5
...
85942c5d00
Author | SHA1 | Date |
---|---|---|
|
85942c5d00 | |
|
fe460f7441 |
|
@ -14,7 +14,7 @@ function initEntitiesActions(store, router) {
|
||||||
}) {
|
}) {
|
||||||
const { before, after, orderBy } = getDateRange(range);
|
const { before, after, orderBy } = getDateRange(range);
|
||||||
|
|
||||||
const { entity, batches: [lastBatch] } = await graphql(`
|
const { entity, connection, batches: [lastBatch] } = await graphql(`
|
||||||
query Entity(
|
query Entity(
|
||||||
$entitySlug: String!
|
$entitySlug: String!
|
||||||
$entityType: String! = "channel"
|
$entityType: String! = "channel"
|
||||||
|
@ -84,32 +84,40 @@ function initEntitiesActions(store, router) {
|
||||||
hasLogo
|
hasLogo
|
||||||
${campaignsFragment}
|
${campaignsFragment}
|
||||||
}
|
}
|
||||||
connection: scenesConnection(
|
}
|
||||||
first: $limit
|
connection: releasesConnection(
|
||||||
offset: $offset
|
first: $limit
|
||||||
orderBy: $orderBy
|
offset: $offset
|
||||||
filter: {
|
orderBy: $orderBy
|
||||||
effectiveDate: {
|
filter: {
|
||||||
lessThan: $before,
|
entity: {
|
||||||
greaterThan: $after
|
slug: {
|
||||||
|
equalTo: $entitySlug
|
||||||
}
|
}
|
||||||
releasesTagsConnection: {
|
type: {
|
||||||
none: {
|
equalTo: $entityType
|
||||||
tag: {
|
}
|
||||||
slug: {
|
}
|
||||||
in: $exclude
|
effectiveDate: {
|
||||||
}
|
lessThan: $before,
|
||||||
|
greaterThan: $after
|
||||||
|
}
|
||||||
|
releasesTagsConnection: {
|
||||||
|
none: {
|
||||||
|
tag: {
|
||||||
|
slug: {
|
||||||
|
in: $exclude
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
) {
|
|
||||||
releases: nodes {
|
|
||||||
${releaseFields}
|
|
||||||
}
|
|
||||||
totalCount
|
|
||||||
}
|
}
|
||||||
}
|
) {
|
||||||
|
releases: nodes {
|
||||||
|
${releaseFields}
|
||||||
|
}
|
||||||
|
totalCount
|
||||||
|
}
|
||||||
${batchFragment}
|
${batchFragment}
|
||||||
}
|
}
|
||||||
`, {
|
`, {
|
||||||
|
@ -131,8 +139,8 @@ function initEntitiesActions(store, router) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
entity: curateEntity(entity, null, entity.connection.releases, { lastBatch: lastBatch.id }),
|
entity: curateEntity(entity, null, connection.releases, { lastBatch: lastBatch.id }),
|
||||||
totalCount: entity.connection.totalCount,
|
totalCount: connection.totalCount,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.227.17",
|
"version": "1.227.18",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.227.17",
|
"version": "1.227.18",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@casl/ability": "^5.2.2",
|
"@casl/ability": "^5.2.2",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx",
|
"name": "traxxx",
|
||||||
"version": "1.227.17",
|
"version": "1.227.18",
|
||||||
"description": "All the latest porn releases in one place",
|
"description": "All the latest porn releases in one place",
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue