Fix min balance for API quotaCredits to be optional (#6691)

This commit is contained in:
Bryan Lima 2022-09-14 04:21:03 -03:00 committed by GitHub
parent ba35437da7
commit 14656733d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -129,9 +129,6 @@ public class QuotaCreditsCmd extends BaseCmd {
if (getMinBalance() != null) {
_quotaService.setMinBalance(accountId, getMinBalance());
}
else {
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Please set a value for min balance");
}
final QuotaCreditsResponse response = _responseBuilder.addQuotaCredits(accountId, getDomainId(), getValue(), CallContext.current().getCallingUserId(), getQuotaEnforce());
response.setResponseName(getCommandName());