Disable sending emails about compliance failure.

This commit is contained in:
Lampros Smyrnaios 2023-07-24 13:45:24 +03:00
parent 6024e0c5b5
commit 4e1f9cb965
1 changed files with 5 additions and 2 deletions

View File

@ -39,7 +39,9 @@ public class InterfaceComplianceService {
@Scheduled(cron = "0 0 0 * * *") // every day at 00:00
public void cleanUp() {
Set<InterfaceComplianceRequest> requests = getOutdated();
for (InterfaceComplianceRequest request : requests) {
// TODO - In case we want to send the emails, uncomment the following code.
/*for (InterfaceComplianceRequest request : requests) {
try {
Map<String, RepositoryInterface> repositoryInterfaceMap = repositoryService.getRepositoryInterface(request.getRepositoryId())
.stream()
@ -52,7 +54,8 @@ public class InterfaceComplianceService {
} catch (ResourceNotFoundException e) {
logger.error("Error", e);
}
}
}*/
repository.deleteAll(requests);
}