Added global match to preserved keys in actor interpolation.
This commit is contained in:
@@ -80,7 +80,7 @@ function mergeMainProfile(profile, mainProfile) {
|
|||||||
export async function interpolateProfiles(actorIdsOrNames, context, options = {}) {
|
export async function interpolateProfiles(actorIdsOrNames, context, options = {}) {
|
||||||
const profiles = await fetchProfiles(actorIdsOrNames, context);
|
const profiles = await fetchProfiles(actorIdsOrNames, context);
|
||||||
const columns = await context.knex.table('actors').columnInfo().then((table) => Object.keys(table));
|
const columns = await context.knex.table('actors').columnInfo().then((table) => Object.keys(table));
|
||||||
const preservedKeys = ['id', 'name', 'slug', 'entity_id', 'entry_id', 'alias_for', 'created_at', 'batch_id', 'updated_at', 'comment'];
|
const preservedKeys = ['id', 'name', 'slug', 'entity_id', 'entry_id', 'alias_for', 'created_at', 'batch_id', 'updated_at', 'allow_global_match', 'comment'];
|
||||||
|
|
||||||
const profilesByActorId = profiles.reduce((acc, profile) => ({
|
const profilesByActorId = profiles.reduce((acc, profile) => ({
|
||||||
...acc,
|
...acc,
|
||||||
|
|||||||
Reference in New Issue
Block a user