Showing movie trailers. Added internal parameter for entity visibility.
This commit is contained in:
@@ -67,6 +67,10 @@ export async function fetchEntities(options) {
|
||||
if (options.type) {
|
||||
builder.where('entities.type', options.type);
|
||||
}
|
||||
|
||||
if (options.showInvisible !== true) {
|
||||
builder.where('entities.visible', true);
|
||||
}
|
||||
})
|
||||
.leftJoin('entities as parents', 'parents.id', 'entities.parent_id')
|
||||
.orderBy(...(options.order || ['name', 'asc']))
|
||||
|
||||
Reference in New Issue
Block a user