it's this async stuff man
Some checks are pending
/ test-build-and-push (push) Waiting to run

This commit is contained in:
notfire 2025-03-30 22:45:44 -04:00
parent f486266bb7
commit d497e06643
Signed by: notfire
GPG key ID: 3AFDACAAB4E56B16

View file

@ -89,9 +89,8 @@ public class AdminController(
[Authenticate("admin:read:reports")]
[ProducesResults(HttpStatusCode.OK)]
[ProducesErrors(HttpStatusCode.NotFound)]
public async void SetReportState(ReportsQuery query)
{
try
// ReSharper disable once AsyncVoidMethod
public async Task<ReportsQuery>? SetReportState(ReportsQuery query)
{
foreach (var list in query.Reports)
{
@ -102,11 +101,7 @@ public class AdminController(
await db.SaveChangesAsync();
}
}
catch (Exception e)
{
// ReSharper disable once AsyncVoidMethod
throw GracefulException.Conflict(e.ToString());
}
return query;
}
}