Not using NATS redirect URL for independent channels. Showing independent channels first in list.

This commit is contained in:
2026-01-22 01:15:35 +01:00
parent 66c1cbab6a
commit 30303a80d3
3 changed files with 7 additions and 3 deletions

View File

@@ -113,7 +113,10 @@ export async function fetchEntitiesById(entityIds, options = {}, reqUser) {
options.includeChildren ? knex('entities')
.whereIn('entities.parent_id', entityIds)
.whereNot('type', 'info')
.orderBy('slug') : [],
.orderBy([
{ column: 'independent', order: 'desc' },
{ column: 'slug', order: 'asc' },
]) : [],
knex('entities_tags')
.select('entity_id', 'tags.*')
.leftJoin('tags', 'tags.id', 'tag_id')