Skip to content

Commit

Permalink
Fix - Correction d'un identifier invalide pour la génération du walle…
Browse files Browse the repository at this point in the history
…t de documents
  • Loading branch information
noelmugnier committed Dec 9, 2020
1 parent 4326ab9 commit dd52e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sheaft.Web.Api/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,10 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IConfigu
}

var documentWalletId = configuration.GetValue<string>("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<string>("Psp:DocumentWalletId"));
documentWallet.SetIdentifier(documentWalletId);
context.Add(documentWallet);
context.SaveChanges();
}
Expand Down

0 comments on commit dd52e83

Please sign in to comment.