Code cleanup and commenting

This commit is contained in:
rockstardev
2025-03-23 10:58:55 -05:00
parent acfd6059b1
commit 42878f23a6
2 changed files with 1 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
namespace BTCPayServer.Client.Models;
// TODO: This should be moved to individual Webhook Event Providers
public static class WebhookEventType
{
public const string InvoiceCreated = nameof(InvoiceCreated);

View File

@@ -17,8 +17,6 @@ namespace BTCPayServer.Services.PaymentRequests
public const string StatusChanged = nameof(StatusChanged);
public PaymentRequestData Data { get; set; }
public string Type { get; set; }
}
public class PaymentRequestRepository
@@ -61,7 +59,6 @@ namespace BTCPayServer.Services.PaymentRequests
public async Task<bool?> ArchivePaymentRequest(string id, bool toggle = false)
{
await using var context = _ContextFactory.CreateContext();
var pr = await context.PaymentRequests.FindAsync(id);
if(pr == null)