mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
Support Lnurl Withdraw in pull payments (#3709)
* Support Lnurl Withdraw * cleanup and small fixes * remove putin brace
This commit is contained in:
@@ -51,12 +51,10 @@ namespace BTCPayServer.Data
|
||||
var period = pp.GetPeriod(now);
|
||||
if (period is { } p)
|
||||
{
|
||||
return p.Start <= Date && (p.End is DateTimeOffset end ? Date < end : true);
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
return p.Start <= Date && (p.End is not { } end || Date < end);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user