From 28ea89d69c81efa0db66484e3027f44c2ccf849a Mon Sep 17 00:00:00 2001 From: thomkaptein Date: Tue, 21 Jan 2025 19:04:23 +0100 Subject: [PATCH] fix error --- src/FMBot.Bot/Services/TemplateService.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/FMBot.Bot/Services/TemplateService.cs b/src/FMBot.Bot/Services/TemplateService.cs index f7acc6bc..b2640628 100644 --- a/src/FMBot.Bot/Services/TemplateService.cs +++ b/src/FMBot.Bot/Services/TemplateService.cs @@ -37,15 +37,11 @@ public async Task> GetFooterAsync(FmFooterOption footerOptions, Tem if (batch.BatchCommands.Count > 0) { await using var reader = await batch.ExecuteReaderAsync(); - var sqlTasks = new List(); foreach (var option in sqlOptions) { - var task = ProcessSqlOptionAsync(option, context, reader, options); - sqlTasks.Add(task); + await ProcessSqlOptionAsync(option, context, reader, options); } - - await Task.WhenAll(sqlTasks); } var complexTasks = complexOptions.Select(o => ProcessComplexOptionAsync(o, context, options));