enabled emails
This commit is contained in:
parent
9e967cab33
commit
84df31c87a
|
@ -276,7 +276,7 @@ public class RepositoryServiceImpl implements RepositoryService {
|
||||||
return resultSet;
|
return resultSet;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOGGER.debug("Exception on getRepositoriesByCountry", e);
|
LOGGER.debug("Exception on getRepositoriesByCountry", e);
|
||||||
// emailUtils.reportException(e);
|
emailUtils.reportException(e);
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -607,8 +607,8 @@ public class RepositoryServiceImpl implements RepositoryService {
|
||||||
ResponseEntity responseEntity = restTemplate.exchange(uriComponents.toUri(), HttpMethod.POST, httpEntity, ResponseEntity.class);
|
ResponseEntity responseEntity = restTemplate.exchange(uriComponents.toUri(), HttpMethod.POST, httpEntity, ResponseEntity.class);
|
||||||
|
|
||||||
if (responseEntity.getStatusCode().equals(HttpStatus.OK)) {
|
if (responseEntity.getStatusCode().equals(HttpStatus.OK)) {
|
||||||
// emailUtils.sendUserRegistrationEmail(repository, authentication);
|
emailUtils.sendUserRegistrationEmail(repository, authentication);
|
||||||
// emailUtils.sendAdminRegistrationEmail(repository, authentication);
|
emailUtils.sendAdminRegistrationEmail(repository, authentication);
|
||||||
} else
|
} else
|
||||||
LOGGER.debug(responseEntity.getBody().toString());
|
LOGGER.debug(responseEntity.getBody().toString());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue