Optionally showing aliases in actors admin.

This commit is contained in:
2026-07-08 03:47:06 +02:00
parent dd344ecc3f
commit 2d0983f4d1
4 changed files with 36 additions and 11 deletions
+8 -4
View File
@@ -396,9 +396,7 @@ async function queryManticoreSql(filters, options, _reqUser) {
.innerJoin('actors', 'actors.id', 'actors_stashed.actor_id')
.where('stash_id', filters.stashId);
} else {
builder
.select(knex.raw('*, weight() as _score'))
.where('alias_for', 0);
builder.select(knex.raw('*, weight() as _score'));
}
if (filters.query) {
@@ -409,7 +407,13 @@ async function queryManticoreSql(filters, options, _reqUser) {
}
}
if (filters.isGlobal) {
console.log('FILTERS', filters);
if (!filters.includeAliased) {
builder.where('alias_for', 0);
}
if (filters.requireGlobal) {
builder.where('entity_id', 0);
}