diff options
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 |
commit | 65be7fc53faf08a056b6d388ad7aaf4a775f565b (patch) | |
tree | dc7e2190435aec993280d07c2ace8891eddf9eff /src/util/serialize.js | |
parent | 8dc4763384100c8f126577586ec34e09aa47fe14 (diff) |
data: misc adaptations for who/what -> artist/annotation
Diffstat (limited to 'src/util/serialize.js')
-rw-r--r-- | src/util/serialize.js | 6 |
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; }); } |