« 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/serialize.js
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-04-24 11:14:59 -0300
commit65be7fc53faf08a056b6d388ad7aaf4a775f565b (patch)
treedc7e2190435aec993280d07c2ace8891eddf9eff /src/util/serialize.js
parent8dc4763384100c8f126577586ec34e09aa47fe14 (diff)
data: misc adaptations for who/what -> artist/annotation
Diffstat (limited to 'src/util/serialize.js')
-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;
   });
 }