Changed to CJS.

This commit is contained in:
DebaucheryLibrarian 2024-10-22 02:20:01 +02:00
parent 901453f251
commit fd7630443e
1 changed files with 5 additions and 1 deletions

View File

@ -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,
};