Reformat all project files to use the prettier config file.

This commit is contained in:
Patrick Fic
2024-03-27 15:35:07 -07:00
parent b161530381
commit e1df64d592
873 changed files with 111387 additions and 125473 deletions

View File

@@ -1,4 +1,4 @@
const {GraphQLClient} = require("graphql-request");
const { GraphQLClient } = require("graphql-request");
/**
* Middleware to add a GraphQL Client to the request object
@@ -10,15 +10,15 @@ const {GraphQLClient} = require("graphql-request");
* @param next
*/
const withUserGraphQLClientMiddleware = (req, res, next) => {
const BearerToken = req.headers.authorization;
req.userGraphQLClient = new GraphQLClient(process.env.GRAPHQL_ENDPOINT, {
headers: {
Authorization: BearerToken,
},
});
req.BearerToken = BearerToken;
const BearerToken = req.headers.authorization;
req.userGraphQLClient = new GraphQLClient(process.env.GRAPHQL_ENDPOINT, {
headers: {
Authorization: BearerToken
}
});
req.BearerToken = BearerToken;
next();
next();
};
module.exports = withUserGraphQLClientMiddleware;
module.exports = withUserGraphQLClientMiddleware;