Skip to content

Commit

Permalink
Adding the validation (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil-tarento authored Oct 22, 2024
1 parent 0eca0eb commit 3d1150b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,6 @@ public void processBulkUploadV1(HashMap<String, String> inputDataMap) throws IOE
// Validate phone

if (ValidationUtil.validateContactPattern(phone)) {
userDetails = new HashMap<>();
userDetailsForMobile = new HashMap<>();
filters = new HashMap<>();
filters.put(Constants.PHONE, phone);
Expand All @@ -801,6 +800,7 @@ public void processBulkUploadV1(HashMap<String, String> inputDataMap) throws IOE
errList.add("Invalid Phone number format");
}
if (!StringUtils.isEmpty(phone) && isEmailValid) {
userDetailsForMobileAndEmail = new HashMap<>();
filters = new HashMap<>();
filters.put(Constants.EMAIL, email);
filters.put(Constants.PHONE, phone);
Expand Down

0 comments on commit 3d1150b

Please sign in to comment.