Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Jan 21, 2025
1 parent df1e34d commit 28ea89d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/FMBot.Bot/Services/TemplateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,11 @@ public async Task<List<string>> GetFooterAsync(FmFooterOption footerOptions, Tem
if (batch.BatchCommands.Count > 0)
{
await using var reader = await batch.ExecuteReaderAsync();
var sqlTasks = new List<Task>();

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));
Expand Down

0 comments on commit 28ea89d

Please sign in to comment.