Compare commits
2 Commits
e55818ab44
...
f69e343d89
| Author | SHA1 | Date | |
|---|---|---|---|
| f69e343d89 | |||
| 7b29584afd |
@@ -126,6 +126,10 @@ async function fetchProfiles(actorIdsOrNames, { knex }) {
|
||||
}
|
||||
|
||||
function mergeMainProfile(profile, mainProfile) {
|
||||
if (!mainProfile) {
|
||||
return profile;
|
||||
}
|
||||
|
||||
const preservedKeys = ['id'];
|
||||
|
||||
const mergedProfile = Object.fromEntries(Object.entries(profile).map(([key, value]) => [key, mainProfile[key] === null || preservedKeys.includes(key)
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "traxxx-utils",
|
||||
"version": "1.2.3",
|
||||
"version": "1.2.4",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "traxxx-utils",
|
||||
"version": "1.2.3",
|
||||
"version": "1.2.4",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.25.7",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "traxxx-common",
|
||||
"version": "1.2.3",
|
||||
"version": "1.2.4",
|
||||
"description": "Common utilities for traxxx core and web.",
|
||||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user