From 7d642243ae7ecb1a368fe4e326f97f4e6d857a2d Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 4 Mar 2024 20:18:26 +0300 Subject: [PATCH] get-shout-data-fix-6 --- index.mjs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.mjs b/index.mjs index 54d294a..8651641 100644 --- a/index.mjs +++ b/index.mjs @@ -75,7 +75,6 @@ const server = Server.configure({ get_shout(shout_id: ${shout_id}) { id slug - created_by { id } authors { id } } } @@ -85,8 +84,8 @@ const server = Server.configure({ .then(res => res.json()) .then((data) => { console.debug('shout data:', data) - const { authors, created_by } = data.get_shout; - if (authors.some(author => author.id === author_id) || created_by.id === author_id) { + const { authors } = data.get_shout; + if (authors.some(author => author.id === author_id)) { return resolve({ id: user, author: author_id,