get-shout-data-fix-3

This commit is contained in:
Untone 2024-03-04 20:13:30 +03:00
parent 7370eec203
commit b88d981891

View File

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