Skip to content
Snippets Groups Projects
Commit 07426ddb authored by Guillaume WANG's avatar Guillaume WANG
Browse files

remove one useless operation

parent aff65358
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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
}
}]
}, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment