well it won't because it doesnt save anything to the db
Some checks are pending
/ test-build-and-push (push) Waiting to run
Some checks are pending
/ test-build-and-push (push) Waiting to run
This commit is contained in:
parent
d88518836b
commit
a87ea9f7fe
1 changed files with 3 additions and 0 deletions
|
@ -96,7 +96,10 @@ public class AdminController(
|
|||
{
|
||||
var report = await db.Reports.Where(p => p.Id == list.Id).FirstOrDefaultAsync()
|
||||
?? throw GracefulException.NotFound("Report not found");
|
||||
|
||||
report.Resolved = list.State == "closed";
|
||||
|
||||
await db.SaveChangesAsync();
|
||||
}
|
||||
|
||||
return this.GetReports();
|
||||
|
|
Loading…
Add table
Reference in a new issue