add validation in request
This commit is contained in:
@@ -127,8 +127,8 @@ public class ComplainServiceImpl implements ComplainService {
|
||||
|
||||
Optional<TransactionMaster> dataById = transactionMasterRepository.findById(complainRequestDTO.getTxnId());
|
||||
if (dataById == null || dataById.isEmpty()) {
|
||||
LOGGER.warn("Txn Id is null");
|
||||
throw new CustomException("Txn Id is required", "FAILED", BBPSConstant.BADREQUEST, null);
|
||||
LOGGER.warn("Txn Data Not Found This Txn Id is null");
|
||||
throw new CustomException(BBPSConstant.USER_Txn_IS_NOT_FOUND, "FAILED", BBPSConstant.BADREQUEST, null);
|
||||
}
|
||||
|
||||
TransactionMaster transData = dataById.get();
|
||||
|
||||
Reference in New Issue
Block a user