This commit is contained in:
2020-06-27 13:19:48 +00:00
parent 4c33a05e6d
commit 9c0f00fbb0

View File

@@ -169,7 +169,7 @@ namespace AyaNova.Biz
if (ffcount > 0) if (ffcount > 0)
{ {
string msg = string.Empty; string msg = string.Empty;
if (ffcount > 25) if (ffcount < 25)
{ {
//we can list them all //we can list them all
msg = $"{ffcount} files found in attachments folder that don't appear to belong there:"; msg = $"{ffcount} files found in attachments folder that don't appear to belong there:";
@@ -181,10 +181,11 @@ namespace AyaNova.Biz
log.LogDebug(msg); log.LogDebug(msg);
await JobsBiz.LogJobAsync(job.GId, msg); await JobsBiz.LogJobAsync(job.GId, msg);
//TODO: notify OPSNOTIFY //TODO: notify OPSNOTIFY
var outList = ForeignFilesNotLikelyAttachmentsFoundInAttachmentsFolder.Take(25).ToList(); var outList = ForeignFilesNotLikelyAttachmentsFoundInAttachmentsFolder.Take(25).ToList();
foreach (string s in outList) foreach (string s in outList)
{ log.LogDebug(s); {
log.LogDebug(s);
await JobsBiz.LogJobAsync(job.GId, s); await JobsBiz.LogJobAsync(job.GId, s);
} }
} }