Skip to content

Commit

Permalink
Fix graphql GET request cache query extraction (#7319)
Browse files Browse the repository at this point in the history
Fixes #7298
  • Loading branch information
rijkvanzanten committed Aug 10, 2021
1 parent 26a8291 commit 3f3b3f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/utils/get-cache-key.ts
Expand Up @@ -8,7 +8,7 @@ export function getCacheKey(req: Request): string {
const info = {
user: req.accountability?.user || null,
path,
query: path?.includes('/graphql') ? req.params.query : req.sanitizedQuery,
query: path?.includes('/graphql') ? req.query.query : req.sanitizedQuery,
};

const key = hash(info);
Expand Down

0 comments on commit 3f3b3f0

Please sign in to comment.