From a3e7709986b0822f870a0e5286ee855a8beed5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieli=C5=84ski?= Date: Sat, 1 Mar 2025 21:32:04 +0100 Subject: [PATCH] throw error instead of adding log entry --- WebAPI/dataProcessors/t3.SingleSource.processor.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/WebAPI/dataProcessors/t3.SingleSource.processor.cs b/WebAPI/dataProcessors/t3.SingleSource.processor.cs index 2b93338..5a28770 100644 --- a/WebAPI/dataProcessors/t3.SingleSource.processor.cs +++ b/WebAPI/dataProcessors/t3.SingleSource.processor.cs @@ -73,15 +73,7 @@ public class T3SingleSourceProcessor( if (!dataSources.Any(x => x.CreatedAt > processedLayer.ModifiedAt)) { - logsController.AddEntry(new LogEntry - { - Title = $"{processWorker.Name}, {processWorker.Id}", - Type = LogEntryType.Info, - LogType = LogType.Process, - Message = $"Layer is up to date", - CreatedAt = DateTime.UtcNow - }); - return; + throw new Exception("No new data to process"); } var allRecords = dataSources.SelectMany(x => x.Records!).ToList();