Skip to content

Commit

Permalink
chore: disable redis more
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Feb 16, 2023
1 parent dbaa6ef commit 21741cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions services/api/src/apolloServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const {
} = require('./util/auth');
const { sqlClientPool } = require('./clients/sqlClient');
const esClient = require('./clients/esClient');
const redisClient = require('./clients/redisClient');
// const redisClient = require('./clients/redisClient');
const { getKeycloakAdminClient } = require('./clients/keycloak-admin');
const { logger } = require('./loggers/logger');
const { userActivityLogger } = require('./loggers/userActivityLogger');
Expand Down Expand Up @@ -117,7 +117,7 @@ const apolloServer = new ApolloServer({
sqlClientPool,
keycloakAdminClient,
esClient,
redisClient
// redisClient
};

return {
Expand Down Expand Up @@ -163,7 +163,7 @@ const apolloServer = new ApolloServer({
sqlClientPool,
keycloakAdminClient,
esClient,
redisClient
// redisClient
};

return {
Expand Down
2 changes: 0 additions & 2 deletions services/api/src/util/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,6 @@ export const keycloakHasPermission = (grant, requestCache, modelClients) => {
};


logger.info(`A ${JSON.stringify(grant.access_token.token)}`)

const usersAttribute = R.prop('users', attributes);
if (usersAttribute && usersAttribute.length) {
claims = {
Expand Down

0 comments on commit 21741cd

Please sign in to comment.