enabled emails

This commit is contained in:
Konstantinos Spyrou 2021-07-22 13:52:50 +00:00
parent 9e967cab33
commit 84df31c87a
1 changed files with 3 additions and 3 deletions

View File

@ -276,7 +276,7 @@ public class RepositoryServiceImpl implements RepositoryService {
return resultSet;
} catch (Exception e) {
LOGGER.debug("Exception on getRepositoriesByCountry", e);
// emailUtils.reportException(e);
emailUtils.reportException(e);
throw e;
}
}
@ -607,8 +607,8 @@ public class RepositoryServiceImpl implements RepositoryService {
ResponseEntity responseEntity = restTemplate.exchange(uriComponents.toUri(), HttpMethod.POST, httpEntity, ResponseEntity.class);
if (responseEntity.getStatusCode().equals(HttpStatus.OK)) {
// emailUtils.sendUserRegistrationEmail(repository, authentication);
// emailUtils.sendAdminRegistrationEmail(repository, authentication);
emailUtils.sendUserRegistrationEmail(repository, authentication);
emailUtils.sendAdminRegistrationEmail(repository, authentication);
} else
LOGGER.debug(responseEntity.getBody().toString());