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