chore: clean up types

This commit is contained in:
Henry
2026-04-20 21:54:23 +01:00
parent b4b07f3120
commit 39bca3b39f
16 changed files with 84 additions and 39 deletions

View File

@@ -170,7 +170,7 @@ export function createPlugins(db: dbClient) {
if (authorization?.startsWith("Bearer ")) {
return authorization.slice(7);
}
return ctx.headers?.get("x-api-key") ?? undefined;
return ctx.headers?.get("x-api-key") ?? null;
},
rateLimit: {
enabled: true,