mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
Code cleanup and commenting
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user