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