From dd52e835830c1caa08506fe18317a9dbe60a7b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=ABl=20Mugnier?= Date: Wed, 9 Dec 2020 23:16:52 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20-=20Correction=20d'un=20identifier=20inva?= =?UTF-8?q?lide=20pour=20la=20g=C3=A9n=C3=A9ration=20du=20wallet=20de=20do?= =?UTF-8?q?cuments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sheaft.Web.Api/Startup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sheaft.Web.Api/Startup.cs b/Sheaft.Web.Api/Startup.cs index 861aeaa3d..9d03788ec 100644 --- a/Sheaft.Web.Api/Startup.cs +++ b/Sheaft.Web.Api/Startup.cs @@ -403,10 +403,10 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IConfigu } var documentWalletId = configuration.GetValue("Psp:DocumentWalletId"); - if (context.Wallets.FirstOrDefault(u => u.Identifier == donationWalletId) == null) + if (context.Wallets.FirstOrDefault(u => u.Identifier == documentWalletId) == null) { var documentWallet = new Wallet(Guid.NewGuid(), "Document", WalletKind.Documents, admin); - documentWallet.SetIdentifier(configuration.GetValue("Psp:DocumentWalletId")); + documentWallet.SetIdentifier(documentWalletId); context.Add(documentWallet); context.SaveChanges(); }