mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Just remove obscure, possibly non-functional code
This commit is contained in:
parent
3d224512b1
commit
18e6843774
@ -164,8 +164,6 @@ module.exports = {
|
|||||||
tokenName: 'human-connection-token', // optional, default: apollo-token
|
tokenName: 'human-connection-token', // optional, default: apollo-token
|
||||||
tokenExpires: 3, // optional, default: 7 (days)
|
tokenExpires: 3, // optional, default: 7 (days)
|
||||||
// includeNodeModules: true, // optional, default: false (this includes graphql-tag for node_modules folder)
|
// includeNodeModules: true, // optional, default: false (this includes graphql-tag for node_modules folder)
|
||||||
// optional
|
|
||||||
errorHandler: '~/plugins/apollo-error-handler.js',
|
|
||||||
|
|
||||||
// Watch loading state for all queries
|
// Watch loading state for all queries
|
||||||
// See 'Smart Query > options > watchLoading' for detail
|
// See 'Smart Query > options > watchLoading' for detail
|
||||||
|
|||||||
@ -1,14 +0,0 @@
|
|||||||
export default (error, context) => {
|
|
||||||
/* eslint-disable-next-line no-console */
|
|
||||||
|
|
||||||
// TODO: I added this code without ever reaching it!
|
|
||||||
// See: https://github.com/nuxt-community/apollo-module/pull/218#issuecomment-506939244
|
|
||||||
// Maybe this `errorHandler` callback is never being called?
|
|
||||||
|
|
||||||
console.log(
|
|
||||||
'%cError',
|
|
||||||
'background: red; color: white; padding: 2px 4px; border-radius: 3px; font-weight: bold;',
|
|
||||||
error.message,
|
|
||||||
)
|
|
||||||
context.error({ statusCode: 304, message: 'Server error' })
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user