fix: reduce forcedSlowMode rate limit from 30s to 1s (#27359)
* fix: reduce forcedSlowMode rate limit from 30s to 1s Co-Authored-By: [email protected] <[email protected]> * revert: keep rateLimit.ts unchanged, only update API v2 controllers Co-Authored-By: [email protected] <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
034fbd63f1
commit
844380e265
3 files changed
+3
-3
No files matched your search
@@ -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> {
|
||||
|
||||
Reference in new issue
Block a user