Project

General

Profile

« Previous | Next » 

Revision 55587

Calling the sendAdmin email notifications for the registration and update of a repository - correct

View differences:

modules/uoa-repository-manager-service/branches/dev-api/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java
452 452
            ResponseEntity responseEntity = restTemplate.exchange(uriComponents.toUri(),HttpMethod.POST, httpEntity
453 453
                    , ResponseEntity.class);
454 454

  
455
            if (responseEntity.getStatusCode().equals(HttpStatus.OK))
455
            if (responseEntity.getStatusCode().equals(HttpStatus.OK)) {
456 456
                emailUtils.sendUserUpdateRepositoryEmail(repository, authentication);
457
            else
457
                emailUtils.sendAdminUpdateRepositoryEmail(repository, authentication);
458
            } else
458 459
                LOGGER.debug(responseEntity.getBody().toString());
459 460

  
460 461
            return repository;

Also available in: Unified diff