Improved actor entity and entry ID storage.

This commit is contained in:
DebaucheryLibrarian
2021-02-16 03:37:52 +01:00
parent b26a029f66
commit 67055bf920
5 changed files with 52 additions and 24 deletions

View File

@@ -19,7 +19,7 @@ function resolveLayoutScraper(entity, scraper) {
return scraper[entity.parameters.layout];
}
if (entity.parent) {
if (entity?.parent) {
return resolveLayoutScraper(entity.parent, scraper);
}

View File

@@ -258,7 +258,8 @@ async function fetchLatest(entity, page, options) {
.limit(faker.random.number({ min: 2, max: 15 }))
.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
release.actors = ['Amber'];
release.title = title(release);
return release;