Skip to content

Commit 976a837

Browse files
chore(deps): bump fastify from 5.7.4 to 5.8.1 in the npm_and_yarn group across 1 directory (#282)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
1 parent 07ccfd5 commit 976a837

3 files changed

Lines changed: 22 additions & 28 deletions

File tree

packages/fastify-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@fastify/swagger": "^9.7.0",
2323
"@supabase/stripe-sync-engine": "workspace:",
2424
"dotenv": "^17.2.4",
25-
"fastify": "^5.7.4",
25+
"fastify": "^5.8.2",
2626
"stripe": "^20.3.1"
2727
},
2828
"devDependencies": {

packages/fastify-app/src/utils/verifyApiKey.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ export const verifyApiKey = (
88
request: FastifyRequest,
99
reply: FastifyReply,
1010
done: HookHandlerDoneFunction
11-
): unknown => {
11+
): void => {
1212
if (!request.headers || !request.headers.authorization) {
13-
return reply.code(401).send('Unauthorized')
13+
reply.code(401).send('Unauthorized')
14+
return
1415
}
1516
const { authorization } = request.headers
1617
if (!apiKeyMatches(authorization, config.apiKey)) {
17-
return reply.code(401).send('Unauthorized')
18+
reply.code(401).send('Unauthorized')
19+
return
1820
}
1921
done()
2022
}

pnpm-lock.yaml

Lines changed: 16 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)