Skip to content

Commit

Permalink
fix: lastchangedlist projections 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD authored Sep 26, 2023
1 parent 9c7676c commit b3c44d8
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ public LastChangedListProjections()
{
When<Envelope<PostalInformationWasRegistered>>(async (context, message, ct) =>
{
await GetLastChangedRecordsAndUpdatePosition(message.Message.PostalCode, message.Position, context, ct);
var attachedRecords = await GetLastChangedRecordsAndUpdatePosition(message.Message.PostalCode, message.Position, context, ct);

foreach (var record in attachedRecords)
{
record.CacheKey = string.Format(record.CacheKey, message.Message.NisCode);

Check failure on line 28 in src/PostalRegistry.Projections.LastChangedList/LastChangedListProjections.cs

View workflow job for this annotation

GitHub Actions / Build

'PostalInformationWasRegistered' does not contain a definition for 'NisCode' and no accessible extension method 'NisCode' accepting a first argument of type 'PostalInformationWasRegistered' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 28 in src/PostalRegistry.Projections.LastChangedList/LastChangedListProjections.cs

View workflow job for this annotation

GitHub Actions / Build

'PostalInformationWasRegistered' does not contain a definition for 'NisCode' and no accessible extension method 'NisCode' accepting a first argument of type 'PostalInformationWasRegistered' could be found (are you missing a using directive or an assembly reference?)
record.Uri = string.Format(record.Uri, message.Message.NisCode);

Check failure on line 29 in src/PostalRegistry.Projections.LastChangedList/LastChangedListProjections.cs

View workflow job for this annotation

GitHub Actions / Build

'PostalInformationWasRegistered' does not contain a definition for 'NisCode' and no accessible extension method 'NisCode' accepting a first argument of type 'PostalInformationWasRegistered' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 29 in src/PostalRegistry.Projections.LastChangedList/LastChangedListProjections.cs

View workflow job for this annotation

GitHub Actions / Build

'PostalInformationWasRegistered' does not contain a definition for 'NisCode' and no accessible extension method 'NisCode' accepting a first argument of type 'PostalInformationWasRegistered' could be found (are you missing a using directive or an assembly reference?)
}
});

When<Envelope<PostalInformationWasRealized>>(async (context, message, ct) =>
Expand Down

0 comments on commit b3c44d8

Please sign in to comment.