Compare commits

..

No commits in common. "5b623ee46f16265d1d53822204acb8fd69dcbdb9" and "fc318536aa3506eb640872482d4386772953adf8" have entirely different histories.

6 changed files with 12 additions and 24 deletions

View File

@ -40,11 +40,8 @@
>{{ entity.name }}</span> >{{ entity.name }}</span>
</div> </div>
<span <span class="count">
v-if="entity.childrenTotal > 0 || typeof entity.sceneTotal !== 'undefined'" <span>{{ entity.sceneTotal }} scenes</span>
class="count"
>
<span v-if="typeof entity.sceneTotal !== 'undefined'">{{ entity.sceneTotal }} scenes</span>
<span v-if="entity.type === 'network'">{{ entity.childrenTotal }} channels</span> <span v-if="entity.type === 'network'">{{ entity.childrenTotal }} channels</span>
</span> </span>
</router-link> </router-link>

View File

@ -194,6 +194,12 @@ function initEntitiesActions(store, router) {
url url
independent independent
hasLogo hasLogo
children: childEntitiesConnection {
totalCount
}
connection: scenesConnection {
totalCount
}
} }
} }
`, { `, {

View File

@ -1,15 +0,0 @@
exports.up = async (knex) => Promise.resolve()
.then(() => knex.schema.alterTable('releases_tags', (table) => {
table.index('release_id');
}))
.then(() => knex.schema.alterTable('movies_scenes', (table) => {
table.index('scene_id');
}));
exports.down = async (knex) => Promise.resolve()
.then(() => knex.schema.alterTable('releases_tags', (table) => {
table.dropIndex('release_id');
}))
.then(() => knex.schema.alterTable('movies_scenes', (table) => {
table.dropIndex('scene_id');
}));

4
package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.205.0", "version": "1.204.13",
"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": {

View File

@ -262,7 +262,7 @@ async function fetchLatest(entity, page, options) {
.select('name') .select('name')
.where('priority', '>', 7) .where('priority', '>', 7)
.orderByRaw('random()') .orderByRaw('random()')
.limit(faker.datatype.number({ min: 15, max: 25 })) .limit(faker.datatype.number({ min: 2, max: 15 }))
.pluck('name'); .pluck('name');
release.actors = [...actors(release), null]; // include empty actor to ensure proper handling release.actors = [...actors(release), null]; // include empty actor to ensure proper handling