use-promise-3

This commit is contained in:
Untone 2024-03-04 19:45:17 +03:00
parent a8358375e4
commit c4f3da9c3f

View File

@ -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({