Skip to content

Commit

Permalink
#272 - Use FindDefaultCurrency in PriceCalculator.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Aug 31, 2020
1 parent a6cf514 commit 949e568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Money.Api/Domain/Services/PriceCalculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private async Task EnsureUserStorageAsync(IKey userKey)
{
storage[userKey] = model = new UserModel();

model.DefaultCurrencyUniqueCode = await queryDispatcher.QueryAsync(new GetCurrencyDefault() { UserKey = userKey });
model.DefaultCurrencyUniqueCode = await queryDispatcher.QueryAsync(new FindCurrencyDefault() { UserKey = userKey });

IEnumerable<CurrencyModel> currencies = await queryDispatcher.QueryAsync(new ListAllCurrency() { UserKey = userKey });
foreach (CurrencyModel currency in currencies)
Expand Down

0 comments on commit 949e568

Please sign in to comment.