From b88d9818919d3550b0b1081fc47a82a47ed4e326 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 4 Mar 2024 20:13:30 +0300 Subject: [PATCH] get-shout-data-fix-3 --- index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.mjs b/index.mjs index 64775a9..6de4a67 100644 --- a/index.mjs +++ b/index.mjs @@ -88,7 +88,7 @@ const server = Server.configure({ const { authors, created_by } = data.get_shout; if (authors.some(author => author.id === author_id) || created_by === author_id) { return resolve({ - id: user_id, + id: user, author: author_id, roles: Array.isArray(roles) ? roles : roles.split(','), });