mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-11-04 18:40:20 +00:00
chore: switch storage to D1 (test branch)
This commit is contained in:
1 parent
5fc2436552
commit
d2ce2aea24
17 files changed
+480
-333
No files matched your search
+1
-1
@@ -200,7 +200,7 @@ export async function handleRequest(request: Request, env: Env): Promise<Respons
|
||||
const userId = payload.sub;
|
||||
|
||||
// API rate limiting for authenticated requests
|
||||
const rateLimit = new RateLimitService(env.VAULT);
|
||||
const rateLimit = new RateLimitService(env.DB);
|
||||
const clientId = getClientIdentifier(request);
|
||||
const rateLimitCheck = await rateLimit.checkApiRateLimit(userId + ':' + clientId);
|
||||
|
||||
|
||||
Reference in new issue
Block a user