From 8ae5a9c1f77e1ee25f93a453a4a12585b2f70086 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 22 Feb 2019 17:51:38 +0900 Subject: [PATCH] Fix old crowdfunding invoices --- BTCPayServer/BTCPayServer.csproj | 2 +- BTCPayServer/Controllers/InvoiceController.cs | 1 + BTCPayServer/Services/Invoices/InvoiceEntity.cs | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index 7e887d2d0..8c1f3728e 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -2,7 +2,7 @@ Exe netcoreapp2.1 - 1.0.3.62 + 1.0.3.63 NU1701,CA1816,CA1308,CA1810,CA2208 diff --git a/BTCPayServer/Controllers/InvoiceController.cs b/BTCPayServer/Controllers/InvoiceController.cs index a13b4c1d9..58a5fd825 100644 --- a/BTCPayServer/Controllers/InvoiceController.cs +++ b/BTCPayServer/Controllers/InvoiceController.cs @@ -70,6 +70,7 @@ namespace BTCPayServer.Controllers logs.Write("Creation of invoice starting"); var entity = new InvoiceEntity { + Version = InvoiceEntity.Lastest_Version, InvoiceTime = DateTimeOffset.UtcNow }; diff --git a/BTCPayServer/Services/Invoices/InvoiceEntity.cs b/BTCPayServer/Services/Invoices/InvoiceEntity.cs index d6f648c20..d875db9f7 100644 --- a/BTCPayServer/Services/Invoices/InvoiceEntity.cs +++ b/BTCPayServer/Services/Invoices/InvoiceEntity.cs @@ -114,7 +114,8 @@ namespace BTCPayServer.Services.Invoices public class InvoiceEntity { public const int InternalTagSupport_Version = 1; - public int Version { get; set; } = 1; + public const int Lastest_Version = 1; + public int Version { get; set; } public string Id { get; set;