Removed info channels from overview. Fixed poster gap.
This commit is contained in:
@@ -30,16 +30,24 @@ export async function fetchEntities(options) {
|
||||
if (options.query) {
|
||||
builder.where((whereBuilder) => {
|
||||
whereBuilder
|
||||
.whereILike('entities.name', `%${options.query}%`)
|
||||
.orWhereILike('entities.slug', `%${options.query}%`);
|
||||
.where((subBuilder) => {
|
||||
subBuilder
|
||||
.whereILike('entities.name', `%${options.query}%`)
|
||||
.orWhereILike('entities.slug', `%${options.query}%`);
|
||||
})
|
||||
.whereNot('entities.type', 'info');
|
||||
});
|
||||
}
|
||||
|
||||
if (options.type === 'primary') {
|
||||
builder
|
||||
.where('entities.type', 'network')
|
||||
.orWhere('entities.independent', true)
|
||||
.orWhereNull('entities.parent_id');
|
||||
.where((subBuilder) => {
|
||||
subBuilder
|
||||
.where('entities.type', 'network')
|
||||
.orWhere('entities.independent', true)
|
||||
.orWhereNull('entities.parent_id');
|
||||
})
|
||||
.whereNot('entities.type', 'info');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user