well it won't because it doesnt save anything to the db
Some checks are pending
/ test-build-and-push (push) Waiting to run

This commit is contained in:
notfire 2025-03-30 22:14:00 -04:00
parent d88518836b
commit a87ea9f7fe
Signed by: notfire
GPG key ID: 3AFDACAAB4E56B16

View file

@ -96,7 +96,10 @@ public class AdminController(
{ {
var report = await db.Reports.Where(p => p.Id == list.Id).FirstOrDefaultAsync() var report = await db.Reports.Where(p => p.Id == list.Id).FirstOrDefaultAsync()
?? throw GracefulException.NotFound("Report not found"); ?? throw GracefulException.NotFound("Report not found");
report.Resolved = list.State == "closed"; report.Resolved = list.State == "closed";
await db.SaveChangesAsync();
} }
return this.GetReports(); return this.GetReports();