use-promise-3
This commit is contained in:
parent
a8358375e4
commit
c4f3da9c3f
|
@ -47,7 +47,7 @@ const server = Server.configure({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch('https://core.discours.io/graphql', {
|
fetch('https://core.discours.io/', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
@ -67,7 +67,7 @@ const server = Server.configure({
|
||||||
.then(data => {
|
.then(data => {
|
||||||
const { id: author_id } = data.get_author
|
const { id: author_id } = data.get_author
|
||||||
if (author_id) {
|
if (author_id) {
|
||||||
fetch('https://core.discours.io/graphql', {
|
fetch('https://core.discours.io/', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user