mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
fix(server): relax the rate limits (#4092)
This commit is contained in:
@@ -44,7 +44,7 @@ export class NextAuthController {
|
||||
}
|
||||
|
||||
@UseGuards(CloudThrottlerGuard)
|
||||
@Throttle(20, 60)
|
||||
@Throttle(60, 60)
|
||||
@All('*')
|
||||
async auth(
|
||||
@Req() req: Request,
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user