Skip to content

Commit ff3cb70

Browse files
TD-2186: Removed use of async void
1 parent d86005a commit ff3cb70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DigitalLearningSolutions.Web/Services/DelegateDownloadFileService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private void PopulateJobGroupsSheet(IXLWorkbook workbook)
133133
ClosedXmlHelper.AddSheetToWorkbook(workbook, JobGroupsSheetName, jobGroups, TableTheme);
134134
}
135135

136-
private async void PopulateAllDelegatesSheet(
136+
private void PopulateAllDelegatesSheet(
137137
IXLWorkbook workbook,
138138
int centreId,
139139
string? searchString,
@@ -143,7 +143,7 @@ private async void PopulateAllDelegatesSheet(
143143
)
144144
{
145145
var registrationPrompts = centreRegistrationPromptsService.GetCentreRegistrationPromptsByCentreId(centreId);
146-
var delegatesToExport = await GetDelegatesToExport(centreId);
146+
var delegatesToExport = Task.Run(() => GetDelegatesToExport(centreId)).Result;
147147
var searchedUsers = GenericSearchHelper.SearchItems(delegatesToExport, searchString).AsQueryable();
148148
var filteredItems = FilteringHelper.FilterItems(searchedUsers, filterString).AsQueryable();
149149
var sortedItems = GenericSortingHelper.SortAllItems(

0 commit comments

Comments
 (0)