From a5d99d6195304080cccf64936c942f0d29f612a9 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 28 Mar 2025 13:53:00 +0000 Subject: [PATCH] fix: pass event to runtime config --- server/api/update-location.post.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/update-location.post.ts b/server/api/update-location.post.ts index 1e9c0963..93a62d64 100644 --- a/server/api/update-location.post.ts +++ b/server/api/update-location.post.ts @@ -10,7 +10,7 @@ export default defineEventHandler(async event => { }) } - const config = useRuntimeConfig() + const config = useRuntimeConfig(event) if (apiKey !== config.locationApiKey) { return createError({ statusCode: 401, -- knotmirror 0.0.1