Skip to content

Commit

Permalink
prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrrt committed Jan 21, 2024
1 parent c55ea1d commit 0d0bb9c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/core/src/handlers/hydra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
unauthorizedResponse,
} from "../responses/default";


// TODO: remove duplicated identity fetcher
export const HydraHandler = async (req, env, ctx): Promise<Response> => {
if (ctx.hasOwnProperty("kv") === false) {
Expand Down Expand Up @@ -442,9 +441,8 @@ export const HydraHandler = async (req, env, ctx): Promise<Response> => {
await Promise.all(promises);
}


const streamData: any = await readStream(payload?.body?.getReader());

// removing __typename from response prevents cache invalidation with urql, disable for now
// const finalPayload = removeTypename(JSON.parse(streamData));

Expand All @@ -457,4 +455,4 @@ export const HydraHandler = async (req, env, ctx): Promise<Response> => {
"x-hydra-rate-threshold": String(defaultRateLimitingBudget),
},
});
}
};

0 comments on commit 0d0bb9c

Please sign in to comment.