Fix: remove unnecessary async from OnPostRejectProposalAsync methods
Removed async/await keywords from methods that don't perform any async operations. The methods were triggering CS1998 warnings and running synchronously despite being marked async.
This commit is contained in:
@@ -99,7 +99,7 @@ public class ReviewAISuggestionsModel : PageModel
|
||||
return RedirectToPage();
|
||||
}
|
||||
|
||||
public async Task<IActionResult> OnPostRejectProposalAsync(long transactionId)
|
||||
public IActionResult OnPostRejectProposalAsync(long transactionId)
|
||||
{
|
||||
// Just refresh the page, removing this transaction from view
|
||||
SuccessMessage = "Suggestion rejected.";
|
||||
|
||||
@@ -100,7 +100,7 @@ public class ReviewAISuggestionsWithProposalsModel : PageModel
|
||||
return RedirectToPage();
|
||||
}
|
||||
|
||||
public async Task<IActionResult> OnPostRejectProposalAsync(long transactionId)
|
||||
public IActionResult OnPostRejectProposalAsync(long transactionId)
|
||||
{
|
||||
// Remove this proposal from session
|
||||
var proposalsJson = HttpContext.Session.GetString("AIProposals");
|
||||
|
||||
Reference in New Issue
Block a user