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

Commit aaea741

Browse files
authored
Update Misc.js
1 parent 085db01 commit aaea741

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/classes/Misc.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,22 @@ class Misc {
1414

1515
headers.Cookie = global.cookies;
1616
let info = await variables
17-
.fetch('https://repl.it/graphql', {
17+
.fetch('https://staging.repl.it/graphql', {
1818
method: 'POST',
1919
headers,
2020
body: JSON.stringify({
2121
query: `
22-
query UserSearch($query: String!, $limit: Int!) {
23-
usernameSearch(query: $query, limit: $limit) {
24-
${variables.userAttributes}
25-
}
26-
}`,
22+
query UserSearch($query: String!, $limit: Int!) {
23+
usernameSearch(query: $query, limit: $limit) {
24+
${variables.userAttributes}
25+
}
26+
}`,
2727
variables: {
2828
query,
2929
limit
3030
}
3131
})
32-
})
33-
.then(res => res.json());
32+
}).then(res => res.json());
3433

3534
if (!info.data.usernameSearch) {
3635
throw new Error(`Cannot fetch users.`);

0 commit comments

Comments
 (0)