Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/src/entities/company-info/company-info.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ import { AddCompanyTabTitleDto } from './application/data-structures/add-company
import { FoundCompanyTabTitleRO } from './application/data-structures/found-company-tab-title.ro.js';
import { FoundCompanyWhiteLabelPropertiesRO } from './application/dto/found-company-white-label-properties.ro.js';
import { PaidFeatureGuard } from '../../guards/paid-feature.guard.js';
import { isTest } from '../../helpers/app/is-test.js';

@UseInterceptors(SentryInterceptor)
@Controller('company')
Expand Down Expand Up @@ -205,7 +206,7 @@ export class CompanyInfoController {
type: FoundUserFullCompanyInfoDs,
})
@UseGuards(CompanyUserGuard)
@Throttle({ default: { limit: 5, ttl: 60000 } })
@Throttle({ default: { limit: isTest() ? 200 : 5, ttl: 60000 } })
@Get('my/full')
async getUserCompanies(@UserId() userId: string): Promise<FoundUserCompanyInfoDs | FoundUserFullCompanyInfoDs> {
return await this.getUserFullCompanyInfoUseCase.execute(userId);
Expand Down
2 changes: 2 additions & 0 deletions backend/src/entities/connection/connection.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ import {
} from './use-cases/use-cases.interfaces.js';
import { TokenValidationResult } from './use-cases/validate-connection-token.use.case.js';
import { isTestConnectionUtil } from './utils/is-test-connection-util.js';
import { SkipThrottle } from '@nestjs/throttler';

@UseInterceptors(SentryInterceptor)
@Controller()
Expand Down Expand Up @@ -651,6 +652,7 @@ export class ConnectionController {
type: Boolean,
})
@ApiQuery({ name: 'token', required: true })
@SkipThrottle()
@Get('/connection/token/')
async validateConnectionAgentToken(@Query('token') token: string): Promise<TokenValidationResult> {
if (!token || typeof token !== 'string' || token.length === 0) {
Expand Down
Loading