Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix: 🐛 stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
ecxyzzy committed Sep 11, 2023
1 parent 98569de commit 314d19d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/api/src/routes/v1/graphql/+endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const graphqlServer = new ApolloServer({

export const ANY: APIGatewayProxyHandler = async (event) => {
const { body, headers: eventHeaders, multiValueHeaders, httpMethod: method } = event;
logger.info(eventHeaders);
logger.info(multiValueHeaders);
logger.info(JSON.stringify(eventHeaders));
logger.info(JSON.stringify(multiValueHeaders));

try {
graphqlServer.assertStarted("");
Expand All @@ -44,7 +44,7 @@ export const ANY: APIGatewayProxyHandler = async (event) => {

const req: HTTPGraphQLRequest = {
body,
headers: Object.entries(eventHeaders ?? { "content-encoding": "application/json" }).reduce(
headers: Object.entries(eventHeaders).reduce(
(m, [k, v]) => m.set(k, Array.isArray(v) ? v.join(", ") : v ?? ""),
new HeaderMap(),
),
Expand Down

0 comments on commit 314d19d

Please sign in to comment.