refactor: simplify export metadata construction

This commit is contained in:
Gary Sharp
2025-02-07 16:10:15 +11:00
parent 67f1c2a5d1
commit 2fce645066
30 changed files with 1432 additions and 1484 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ namespace Disco.Web.Controllers
DeviceProfiles = Database.DeviceProfiles.OrderBy(dp => dp.Name).Select(dp => new { Key = dp.Id, Value = dp.Name }).ToList().Select(i => new KeyValuePair<int, string>(i.Key, i.Value))
};
if (ExportTask.TryFromCache(exportId.Value, out var context))
if (ExportTask.TryFromCache(exportId, out var context))
{
m.ExportId = context.Id;
m.ExportResult = context.Result;