Skip to content

Commit

Permalink
Use commonjs for rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Its4Nik committed Nov 2, 2024
1 parent aa4a20f commit 0bbfc91
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified data/database.db
Binary file not shown.
2 changes: 1 addition & 1 deletion middleware/rateLimiter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { rateLimit } from "express-rate-limit";
const { rateLimit } = require("express-rate-limit");

export const limiter = rateLimit({
windowMs: 5 * 60 * 1000, // 5 minutes
Expand Down

0 comments on commit 0bbfc91

Please sign in to comment.