Skip to content

Commit a57cbfc

Browse files
committed
fix early return in api route
1 parent 9ad9ec8 commit a57cbfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/routes/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ const eventsPlugin: FastifyPluginAsync = async (fastify, _options) => {
301301
`events-upcoming_only=${upcomingOnly}`,
302302
);
303303
if (cachedResponse) {
304-
reply
304+
return reply
305305
.header(
306306
"cache-control",
307307
"public, max-age=7200, stale-while-revalidate=900, stale-if-error=86400",

0 commit comments

Comments
 (0)