Scheduling infrastructure for absolutely everyone.
chore: bump slots rate limit (#16826)
Lauris Skraucise43690f19058
diff --git a/apps/api/v2/src/modules/slots/controllers/slots.controller.ts b/apps/api/v2/src/modules/slots/controllers/slots.controller.tsindex fa0cca53413..dbee660a2fc 100644--- a/apps/api/v2/src/modules/slots/controllers/slots.controller.ts+++ b/apps/api/v2/src/modules/slots/controllers/slots.controller.ts@@ -2,6 +2,7 @@ import { API_VERSIONS_VALUES } from "@/lib/api-versions";import { SlotsService } from "@/modules/slots/services/slots.service";import { Query, Body, Controller, Get, Delete, Post, Req, Res } from "@nestjs/common";import { ApiOperation, ApiTags as DocsTags } from "@nestjs/swagger";+import { Throttle, seconds } from "@nestjs/throttler";import { Response as ExpressResponse, Request as ExpressRequest } from "express";import { SUCCESS_STATUS } from "@calcom/platform-constants";@@ -51,6 +52,7 @@ export class SlotsController {@Get("/available")@ApiOperation({ summary: "Get available slots" })+ @Throttle({ default: { limit: 300, ttl: seconds(60) } }) // allow 300 requests per minuteasync getAvailableSlots(@Query() query: GetAvailableSlotsInput,@Req() req: ExpressRequest