|
|
@@ -167,7 +167,8 @@ public class ApiController {
|
|
|
if (repository.findByUuid(uuid).size() == 0) {
|
|
|
throw new ResponseStatusException(HttpStatus.NOT_FOUND, "",
|
|
|
new EvenementNotFoundException(uuid));
|
|
|
- } else if (repositoryVolunteer.findByEventUuidAndEmail(uuid, volunteer.getEmail()).size() > 0) {
|
|
|
+ } else if (repositoryVolunteer
|
|
|
+ .findByEventUuidAndEmailAndImportedFalse(uuid, volunteer.getEmail()).size() > 0) {
|
|
|
throw new ResponseStatusException(HttpStatus.CONFLICT, "Email already existing");
|
|
|
} else {
|
|
|
volunteer.setEventUuid(uuid);
|