chore: clean up types (#476)

This commit is contained in:
Henry
2026-04-20 22:35:39 +01:00
committed by GitHub
parent b4b07f3120
commit e32e400976
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,