Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 47365ba

Browse files
committed
fix restructuring
1 parent a3f1a0e commit 47365ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/github/connector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class GitHubConnector {
5050
uri: url,
5151
...options,
5252
}).then((response) => {
53-
const body = { response };
53+
const { body } = response;
5454
eTagCache[url] = {
5555
result: body,
5656
eTag: response.headers.etag,

api/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export function run({
198198
if (!config.persistedQueries) {
199199
// Get the query, the same way express-graphql does it
200200
// https://github.com/graphql/express-graphql/blob/3fa6e68582d6d933d37fa9e841da5d2aa39261cd/src/index.js#L257
201-
const query = { params };
201+
const { query } = params;
202202
if (query && query.length > 2000) {
203203
// None of our app's queries are this long
204204
// Probably indicates someone trying to send an overly expensive query

0 commit comments

Comments
 (0)