« get me outta code hell

data: misc adaptations for who/what -> artist/annotation - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-24 11:14:59 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-01 07:06:04 -0300
commit1c6d49fc8beddc2608adf43bd269a2e509cfbb70 (patch)
tree6ecb476de29568f9b5dcff2f9c6ecb0eb435b34a /src/util
parenta6e2493f13636f8586fd177dd493812bbcb09dbd (diff)
data: misc adaptations for who/what -> artist/annotation
Diffstat (limited to 'src/util')
-rw-r--r--src/util/serialize.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/serialize.js b/src/util/serialize.js
index 4992e2bf..eb18a759 100644
--- a/src/util/serialize.js
+++ b/src/util/serialize.js
@@ -14,10 +14,10 @@ export function serializeLink(thing) {
 }
 
 export function serializeContribs(contribs) {
-  return contribs.map(({who, what}) => {
+  return contribs.map(({artist, annotation}) => {
     const ret = {};
-    ret.artist = serializeLink(who);
-    if (what) ret.contribution = what;
+    ret.artist = serializeLink(artist);
+    if (annotation) ret.contribution = annotation;
     return ret;
   });
 }