Commit 9d06734f authored by Hando Lukats's avatar Hando Lukats
Browse files

Merge branch 'hotfix/TEIS-2854' of...

Merge branch 'hotfix/TEIS-2854' of https://gitlab.sotsiaalministeerium.ee/teis/files-service into develop
parents 22e63abb 467c985f
theGroup=ee.sm.ti.teis
theVersion=1.23.0
theVersion=1.23.1
commonsVersion=1.29.0
commonApiGatewayVersion=1.29.0
pluginVersion=1.4.4
......
......@@ -42,10 +42,10 @@ public class StartVirusScanJob extends SystemJobExecutor {
List<FileEntity> files = fileDataService.getByMissingVirusScan();
files.forEach(file -> {
List<FilePointerEntity> filePointers = filePointerDataService.getByFileId(file.getId());
filePointers.forEach(pointer -> {
if(!filePointers.isEmpty()){
virusScanProcessService.startProcess(file.getId(), requestMetaDto);
counter.getAndIncrement();
});
}
});
} catch (Exception e) {
return "Virus scan job start failed: " + e.getMessage();
......@@ -53,4 +53,4 @@ public class StartVirusScanJob extends SystemJobExecutor {
return "Amount of files virus scan started: " + counter;
}
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment