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