From 9c0f00fbb05bb56fdb0b14fd2f0a34c045a41929 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 27 Jun 2020 13:19:48 +0000 Subject: [PATCH] --- server/AyaNova/biz/AttachmentBiz.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } }