fix: reduce forcedSlowMode rate limit from 30s to 1s (#27359)

* fix: reduce forcedSlowMode rate limit from 30s to 1s

Co-Authored-By: alex@cal.com <me@alexvanandel.com>

* revert: keep rateLimit.ts unchanged, only update API v2 controllers

Co-Authored-By: alex@cal.com <me@alexvanandel.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Alex van Andel
2026-01-28 17:39:28 -03:00
committed by GitHub
co-authored by Devin AI
parent 034fbd63f1
commit 844380e265
3 changed files with 3 additions and 3 deletions
@@ -142,7 +142,7 @@ export class OrganizationsOrganizationsController {
@Roles("ORG_ADMIN")
@PlatformPlan(SCALE)
@Delete("/:managedOrganizationId")
@Throttle({ limit: 1, ttl: 30000, blockDuration: 30000, name: "organizations_delete" })
@Throttle({ limit: 1, ttl: 1000, blockDuration: 1000, name: "organizations_delete" })
@ApiOperation({
summary: "Delete an organization within an organization",
description:
@@ -121,7 +121,7 @@ export class OrganizationsTeamsController {
@Roles("ORG_ADMIN")
@PlatformPlan("ESSENTIALS")
@Delete("/:teamId")
@Throttle({ limit: 1, ttl: 30000, blockDuration: 30000, name: "org_teams_delete" })
@Throttle({ limit: 1, ttl: 1000, blockDuration: 1000, name: "org_teams_delete" })
@ApiOperation({ summary: "Delete a team" })
async deleteTeam(
@Param("orgId", ParseIntPipe) orgId: number,
@@ -98,7 +98,7 @@ export class TeamsController {
@UseGuards(RolesGuard)
@Delete("/:teamId")
@Throttle({ limit: 1, ttl: 30000, blockDuration: 30000, name: "teams_delete" })
@Throttle({ limit: 1, ttl: 1000, blockDuration: 1000, name: "teams_delete" })
@ApiOperation({ summary: "Delete a team" })
@Roles("TEAM_OWNER")
async deleteTeam(@Param("teamId", ParseIntPipe) teamId: number): Promise<OrgTeamOutputResponseDto> {