author-id-fix-2
This commit is contained in:
parent
3bd3ee30dd
commit
dc1436cdc1
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user