From dc1436cdc1ca1f82ff77c2b93a3a0af678580e34 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 4 Mar 2024 20:01:11 +0300 Subject: [PATCH] author-id-fix-2 --- index.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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({