Changed to CJS.
This commit is contained in:
parent
901453f251
commit
fd7630443e
|
@ -125,7 +125,7 @@ function mergeMainProfile(profile, mainProfile) {
|
||||||
return mergedProfile;
|
return mergedProfile;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function interpolateProfiles(actorIdsOrNames, context) {
|
async function interpolateProfiles(actorIdsOrNames, context) {
|
||||||
const profiles = await fetchProfiles(actorIdsOrNames, context);
|
const profiles = await fetchProfiles(actorIdsOrNames, context);
|
||||||
|
|
||||||
const profilesByActorId = profiles.reduce((acc, profile) => ({
|
const profilesByActorId = profiles.reduce((acc, profile) => ({
|
||||||
|
@ -274,3 +274,7 @@ export async function interpolateProfiles(actorIdsOrNames, context) {
|
||||||
.then(transaction.commit)
|
.then(transaction.commit)
|
||||||
.catch(transaction.rollback);
|
.catch(transaction.rollback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
interpolateProfiles,
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue