diff --git a/src/modules/configuration/core/application/commands/set-configuration/set-configuration.service.ts b/src/modules/configuration/core/application/commands/set-configuration/set-configuration.service.ts index d17e483..4755bfc 100644 --- a/src/modules/configuration/core/application/commands/set-configuration/set-configuration.service.ts +++ b/src/modules/configuration/core/application/commands/set-configuration/set-configuration.service.ts @@ -29,7 +29,12 @@ export class SetConfigurationService implements ICommandHandler { `${command.value}`, configurationType, ); - if (isNaN(value)) throw new ArgumentInvalidException('Bad value'); + if ( + (configurationType === ConfigurationType.INT || + configurationType === ConfigurationType.FLOAT) && + isNaN(value) + ) + throw new ArgumentInvalidException('Bad value'); return await this.configurationRepository.set( command.configurationIdentifier.domain, command.configurationIdentifier.key,