diff --git a/src/app.ts b/src/app.ts index 8fa6b7af065ffd84446352b97eafc6ab2d79ddf2..36dfd54e2a49fbe8e97bd9378d7df065a0a545eb 100644 --- a/src/app.ts +++ b/src/app.ts @@ -163,7 +163,7 @@ const context = async ({ req }): Promise<Context> => { | Authenticated: ${req.isAuthenticated()} `.trim()); - if(req.isAuthenticated() && req.user) { + if(req.isAuthenticated()) { console.log("graphql API is receiving a request from an authenticated user! \\o/"); try { uid = req.user.uid; diff --git a/webpack.config.js b/webpack.config.js index 8a2f66171630ea72d1d9c45896d099a242a0cf92..971836690114a91b815f0339a29e520b3bc44eac 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -70,10 +70,7 @@ const config = { use: [{ loader: 'webpack-graphql-loader', options: { - // validate: true, - // schema: "./path/to/schema.json", - // removeUnusedFragments: true - // etc. See "Loader Options" below + minify: true } }] }, {