diff --git a/index.mjs b/index.mjs index 108a29c..9c3278f 100644 --- a/index.mjs +++ b/index.mjs @@ -63,7 +63,7 @@ const server = Server.configure({ }), }) .then(res => res.json()) - .then(data => { + .then(({ data }) => { console.debug(data) const { id: author_id } = data.get_author_id if (author_id) { @@ -83,7 +83,7 @@ const server = Server.configure({ }), }) .then(res => res.json()) - .then(data => { + .then(({ data }) => { const { authors } = data.get_shout; if (authors.includes(author_id)) { return resolve({