fix(server): relax the rate limits (#4092)

This commit is contained in:
LongYinan
2023-09-01 13:51:37 +08:00
committed by GitHub
parent 3f21b0b45d
commit 83e7e9db8d
6 changed files with 17 additions and 20 deletions

View File

@@ -44,7 +44,7 @@ export class NextAuthController {
}
@UseGuards(CloudThrottlerGuard)
@Throttle(20, 60)
@Throttle(60, 60)
@All('*')
async auth(
@Req() req: Request,

View File

@@ -10,7 +10,6 @@ import { UsersModule } from './users';
import { WorkspaceModule } from './workspaces';
const { SERVER_FLAVOR } = process.env;
const { NODE_ENV } = process.env;
const BusinessModules: (Type | DynamicModule)[] = [];
@@ -40,13 +39,11 @@ switch (SERVER_FLAVOR) {
break;
}
const Providers: Provider[] = [];
if (NODE_ENV !== 'test') {
Providers.push({
const Providers: Provider[] = [
{
provide: APP_FILTER,
useClass: ExceptionLogger,
});
}
},
];
export { BusinessModules, Providers };