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(','), });