author-id-fix-2

This commit is contained in:
Untone 2024-03-04 20:01:11 +03:00
parent 3bd3ee30dd
commit dc1436cdc1

View File

@ -63,7 +63,7 @@ const server = Server.configure({
}), }),
}) })
.then(res => res.json()) .then(res => res.json())
.then(data => { .then(({ data }) => {
console.debug(data) console.debug(data)
const { id: author_id } = data.get_author_id const { id: author_id } = data.get_author_id
if (author_id) { if (author_id) {
@ -83,7 +83,7 @@ const server = Server.configure({
}), }),
}) })
.then(res => res.json()) .then(res => res.json())
.then(data => { .then(({ data }) => {
const { authors } = data.get_shout; const { authors } = data.get_shout;
if (authors.includes(author_id)) { if (authors.includes(author_id)) {
return resolve({ return resolve({