Skip to content

Commit

Permalink
#340 - Fix creating income key in overview model.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed May 14, 2021
1 parent e34e244 commit 896d013
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Money.Models.EntityFrameworkCore/IncomeEntity.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Money.Events;
using Money.Models.Queries;
using Neptuo;
using Neptuo.Models.Keys;
using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -35,7 +36,7 @@ public IncomeEntity(IncomeCreated payload)
}

public IncomeOverviewModel ToOverviewModel(ListMonthIncome query) => new IncomeOverviewModel(
GuidKey.Create(Id, "Income"),
GuidKey.Create(Id, KeyFactory.Empty(typeof(Income)).Type),
new Price(Amount, Currency),
When,
Description
Expand Down

0 comments on commit 896d013

Please sign in to comment.