From ab120c5dcbff54866967ffbed0fe33244140e548 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 6 Apr 2020 17:05:03 +0900 Subject: [PATCH] Fix tests --- BTCPayServer/Services/Invoices/InvoiceEntity.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/Services/Invoices/InvoiceEntity.cs b/BTCPayServer/Services/Invoices/InvoiceEntity.cs index c4280e451..dead49245 100644 --- a/BTCPayServer/Services/Invoices/InvoiceEntity.cs +++ b/BTCPayServer/Services/Invoices/InvoiceEntity.cs @@ -933,7 +933,7 @@ namespace BTCPayServer.Services.Invoices [JsonConverter(typeof(DateTimeMilliJsonConverter))] // Our RBF detection logic depends on properly ordering payments based on // received time, so we needed a received time in milli to ensure that - // even if payments are separated by less than a second, they would still be ordering + // even if payments are separated by less than a second, they would still be ordered correctly public DateTimeOffset? ReceivedTimeMilli { get; set; @@ -944,7 +944,7 @@ namespace BTCPayServer.Services.Invoices get { #pragma warning disable 618 - return (ReceivedTimeMilli ?? ReceivedTimeSeconds).Value; + return (ReceivedTimeMilli ?? ReceivedTimeSeconds).GetValueOrDefault(); #pragma warning restore 618 } set