fix: impact too many records (#3993)
* fix: impact too many records * fix: change env name * fix: remove env name from error
This commit is contained in:
@ -299,4 +299,10 @@ export class EnvironmentService {
|
||||
getApiRateLimitingLimit(): number {
|
||||
return this.configService.get<number>('API_RATE_LIMITING_LIMIT') ?? 500;
|
||||
}
|
||||
|
||||
getMutationMaximumRecordAffected(): number {
|
||||
return (
|
||||
this.configService.get<number>('MUTATION_MAXIMUM_RECORD_AFFECTED') ?? 100
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -199,6 +199,11 @@ export class EnvironmentVariables {
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
IS_SIGN_UP_DISABLED?: boolean;
|
||||
|
||||
@CastToPositiveNumber()
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
MUTATION_MAXIMUM_RECORD_AFFECTED: number;
|
||||
}
|
||||
|
||||
export const validate = (config: Record<string, unknown>) => {
|
||||
|
||||
Reference in New Issue
Block a user