mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
chore: use default throttler replace strict throttler (#6698)
This commit is contained in:
@@ -22,6 +22,7 @@ import { PermissionService } from '../../core/workspaces/permission';
|
|||||||
import {
|
import {
|
||||||
FileUpload,
|
FileUpload,
|
||||||
MutexService,
|
MutexService,
|
||||||
|
Throttle,
|
||||||
TooManyRequestsException,
|
TooManyRequestsException,
|
||||||
} from '../../fundamentals';
|
} from '../../fundamentals';
|
||||||
import { ChatSessionService } from './session';
|
import { ChatSessionService } from './session';
|
||||||
@@ -147,6 +148,7 @@ export class CopilotType {
|
|||||||
workspaceId!: string | undefined;
|
workspaceId!: string | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Throttle()
|
||||||
@Resolver(() => CopilotType)
|
@Resolver(() => CopilotType)
|
||||||
export class CopilotResolver {
|
export class CopilotResolver {
|
||||||
private readonly logger = new Logger(CopilotResolver.name);
|
private readonly logger = new Logger(CopilotResolver.name);
|
||||||
@@ -309,6 +311,7 @@ export class CopilotResolver {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Throttle()
|
||||||
@Resolver(() => UserType)
|
@Resolver(() => UserType)
|
||||||
export class UserCopilotResolver {
|
export class UserCopilotResolver {
|
||||||
constructor(private readonly permissions: PermissionService) {}
|
constructor(private readonly permissions: PermissionService) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user