mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 09:31:43 -05:00
Eslint clean up
This commit is contained in:
parent
d80e76e616
commit
47f21e4740
3 changed files with 3 additions and 2 deletions
|
@ -21,7 +21,7 @@
|
|||
"Juice",
|
||||
"Run",
|
||||
"AppComposer",
|
||||
"Query",
|
||||
"Query"
|
||||
]
|
||||
}],
|
||||
"babel/array-bracket-spacing": 0,
|
||||
|
|
|
@ -6,7 +6,7 @@ import { runCallbacks } from './callbacks.js';
|
|||
import { getSetting, registerSetting } from './settings.js';
|
||||
import { registerFragment, getDefaultFragmentText } from './fragments.js';
|
||||
import escapeStringRegexp from 'escape-string-regexp';
|
||||
wrapAsync = (Meteor.wrapAsync)? Meteor.wrapAsync : Meteor._wrapAsync;
|
||||
const wrapAsync = (Meteor.wrapAsync)? Meteor.wrapAsync : Meteor._wrapAsync;
|
||||
// import { debug } from './debug.js';
|
||||
|
||||
registerSetting('maxDocumentsPerRequest', 1000, 'Maximum documents per request');
|
||||
|
|
|
@ -26,6 +26,7 @@ export const runQuery = async (query, variables = {}, context = { currentUser: {
|
|||
if (result.errors) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(`runQuery error: ${result.errors[0].message}`);
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(result.errors);
|
||||
throw new Error(result.errors[0].message);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue