Fix old crowdfunding invoices

This commit is contained in:
nicolas.dorier
2019-02-22 17:51:38 +09:00
parent 3ef5bfb6eb
commit 8ae5a9c1f7
3 changed files with 4 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<Version>1.0.3.62</Version>
<Version>1.0.3.63</Version>
<NoWarn>NU1701,CA1816,CA1308,CA1810,CA2208</NoWarn>
</PropertyGroup>
<PropertyGroup>

View File

@@ -70,6 +70,7 @@ namespace BTCPayServer.Controllers
logs.Write("Creation of invoice starting");
var entity = new InvoiceEntity
{
Version = InvoiceEntity.Lastest_Version,
InvoiceTime = DateTimeOffset.UtcNow
};

View File

@@ -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;