Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 4ea867a

Browse files
authored
Update Post.js
1 parent 4699c90 commit 4ea867a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/classes/Post.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Post {
1313
}
1414

1515
let info = await variables
16-
.fetch('https://repl.it/graphql', {
16+
.fetch('https://staging.repl.it/graphql', {
1717
method: 'POST',
1818
headers,
1919
body: JSON.stringify({
@@ -44,7 +44,7 @@ class Post {
4444
}
4545

4646
let info = await variables
47-
.fetch('https://repl.it/graphql', {
47+
.fetch('https://staging.repl.it/graphql', {
4848
method: 'POST',
4949
headers,
5050
body: JSON.stringify({
@@ -89,16 +89,16 @@ class Post {
8989

9090
headers.Cookie = global.cookies;
9191
let info = await variables
92-
.fetch('https://repl.it/graphql', {
92+
.fetch('https://staging.repl.it/graphql', {
9393
method: 'POST',
9494
headers,
9595
body: JSON.stringify({
9696
query: `
97-
mutation createComment($id: Int!, $message: String!) {
98-
createComment(input: { body: $message, postId: $id }) {
99-
comment { ${variables.commentAttributes} }
100-
}
101-
}`,
97+
mutation createComment($id: Int!, $message: String!) {
98+
createComment(input: { body: $message, postId: $id }) {
99+
comment { ${variables.commentAttributes} }
100+
}
101+
}`,
102102
variables: {
103103
id,
104104
message

0 commit comments

Comments
 (0)