chore: bump slots rate limit (#16826)

This commit is contained in:
Lauris Skraucis
2024-09-26 13:54:12 +00:00
committed by GitHub
parent 5bbccad41d
commit e43690f190
@@ -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 minute
async getAvailableSlots(
@Query() query: GetAvailableSlotsInput,
@Req() req: ExpressRequest