don't return tag fields when serving deduped entities
@@ -224,6 +224,13 @@ export const plugin = {
console.log(e);
return h.response().code(500);
}
+ // tags are unused, don't return them
+ res = res.entities.map(e => {
+ if (e.attributes.tags) {
+ delete e.attributes.tags;
+ }
+ return e;
+ });
return res;
},
options: {
