Compare commits
3 Commits
0e8282169c
...
40011a62da
| Author | SHA1 | Date | |
|---|---|---|---|
| 40011a62da | |||
| 43db15e017 | |||
| 697cd5d5c2 |
@@ -134,7 +134,7 @@ function mergeMainProfile(profile, mainProfile) {
|
|||||||
return mergedProfile;
|
return mergedProfile;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function interpolateProfiles(actorIdsOrNames, context) {
|
export 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) => ({
|
||||||
@@ -295,7 +295,3 @@ async function interpolateProfiles(actorIdsOrNames, context) {
|
|||||||
|
|
||||||
await context.knex.schema.refreshMaterializedView('actors_meta');
|
await context.knex.schema.refreshMaterializedView('actors_meta');
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
interpolateProfiles,
|
|
||||||
};
|
|
||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "traxxx-utils",
|
"name": "traxxx-utils",
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "traxxx-utils",
|
"name": "traxxx-utils",
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.25.7",
|
"@babel/cli": "^7.25.7",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "traxxx-common",
|
"name": "traxxx-common",
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"description": "Common utilities for traxxx core and web.",
|
"description": "Common utilities for traxxx core and web.",
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user