mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-28 09:46:39 +02:00
🔒️ Enforce stricter rate limits on poll creation
This commit is contained in:
parent
35c3d0bb4f
commit
ad85e02de7
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ export const polls = router({
|
|||
|
||||
// START LEGACY ROUTES
|
||||
create: possiblyPublicProcedure
|
||||
.use(createRateLimitMiddleware("create_poll", 10, "1 h"))
|
||||
.use(createRateLimitMiddleware("create_poll", 5, "1 h"))
|
||||
.use(requireUserMiddleware)
|
||||
.input(
|
||||
z.object({
|
||||
|
|
Loading…
Add table
Reference in a new issue