chore: use default throttler replace strict throttler (#6698)

This commit is contained in:
darkskygit
2024-04-26 02:18:19 +00:00
parent 2c228a35f8
commit 15c1e46680

View File

@@ -22,6 +22,7 @@ import { PermissionService } from '../../core/workspaces/permission';
import {
FileUpload,
MutexService,
Throttle,
TooManyRequestsException,
} from '../../fundamentals';
import { ChatSessionService } from './session';
@@ -147,6 +148,7 @@ export class CopilotType {
workspaceId!: string | undefined;
}
@Throttle()
@Resolver(() => CopilotType)
export class CopilotResolver {
private readonly logger = new Logger(CopilotResolver.name);
@@ -309,6 +311,7 @@ export class CopilotResolver {
}
}
@Throttle()
@Resolver(() => UserType)
export class UserCopilotResolver {
constructor(private readonly permissions: PermissionService) {}