Not refreshing actors meta view by default.
This commit is contained in:
parent
c068c759b2
commit
c63e495516
|
@ -141,7 +141,7 @@ function mergeMainProfile(profile, mainProfile) {
|
|||
return mergedProfile;
|
||||
}
|
||||
|
||||
export async function interpolateProfiles(actorIdsOrNames, context) {
|
||||
export async function interpolateProfiles(actorIdsOrNames, context, options = {}) {
|
||||
const profiles = await fetchProfiles(actorIdsOrNames, context);
|
||||
|
||||
const profilesByActorId = profiles.reduce((acc, profile) => ({
|
||||
|
@ -303,5 +303,7 @@ export async function interpolateProfiles(actorIdsOrNames, context) {
|
|||
.then(transaction.commit)
|
||||
.catch(transaction.rollback);
|
||||
|
||||
if (options.refreshView) {
|
||||
await context.knex.schema.refreshMaterializedView('actors_meta');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue