Added entity scene count function.

This commit is contained in:
DebaucheryLibrarian
2022-01-26 13:52:39 +01:00
parent b62ae00c54
commit 250618df8b
3 changed files with 13 additions and 6 deletions

View File

@@ -117,9 +117,7 @@ function curateEntity(entity, parent, releases) {
if (entity.parent || parent) curatedEntity.parent = curateEntity(entity.parent || parent);
if (releases) curatedEntity.releases = releases.map((release) => curateRelease(release));
if (entity.connection) {
curatedEntity.sceneTotal = entity.connection.totalCount;
}
curatedEntity.sceneTotal = entity.sceneTotal;
return curatedEntity;
}