Skip to content

Commit

Permalink
fix(consumer-postal): correct find relation
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD committed Jan 8, 2025
1 parent 01d6aa6 commit c586447
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public static async Task<PostalLatestItem> FindAndUpdate(
if (postalLatestItem == null)
throw DatabaseItemNotFound(postalCode);

await context.Entry(postalLatestItem).Collection(x => x.PostalNames).LoadAsync(ct);

updateFunc(postalLatestItem);

return postalLatestItem;
Expand Down

0 comments on commit c586447

Please sign in to comment.