This commit is contained in:
AKurakin 2023-06-09 10:39:00 +03:00
parent 66cf85a688
commit b85247dfaf

View file

@ -166,8 +166,8 @@ public class AccountValidationConfig {
AccountError.RequiredFieldEmpty, AccountError.RequiredFieldEmpty,
AccountError.AccountNotFound, AccountError.AccountNotFound,
account -> { account -> {
if (WorkflowStatus.Active.equalsByKey(account.getStatus())) return null; if (AccountStatus.BLOCKED.equalsByKey(account.getStatus())) return AccountError.AccountNotActive;
return AccountError.AccountNotActive; return null;
}) })
); );
}; };