fix migration bug

This commit is contained in:
nicolas.dorier 2018-08-01 18:50:33 +09:00
parent 39b018fdf3
commit 1e582625f3
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -85,6 +85,7 @@ namespace BTCPayServer.HostedServices
}
blob.RateRules = null;
blob.Spread = Math.Min(1.0m, Math.Max(0m, -(multiplier - 1.0m)));
store.SetStoreBlob(blob);
#pragma warning restore CS0612 // Type or member is obsolete
}
await ctx.SaveChangesAsync();