get-shout-data-fix-4

This commit is contained in:
Untone 2024-03-04 20:14:42 +03:00
parent b88d981891
commit 962013a1aa

View File

@ -83,7 +83,7 @@ const server = Server.configure({
}), }),
}) })
.then(res => res.json()) .then(res => res.json())
.then(({ data }) => { .then((data) => {
console.debug('shout data:', data) console.debug('shout data:', data)
const { authors, created_by } = data.get_shout; 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 === author_id) {