Commit 10a5c8a4 authored by Hando Lukats's avatar Hando Lukats
Browse files

Merge branch 'hotfix/TEIS-2854' into 'master'

Release: merge 'hotfix-teis-2854' into 'master' created by Hando Lukats

See merge request teis/files-service!75
parents 0331e7e8 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