Skip to content

Commit

Permalink
fix: add fusie reason
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD committed Jul 17, 2024
1 parent 4f6d24f commit fbc2bd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected IDictionary<string, object> GetMetadata()
};
}

protected Provenance CreateProvenance(Modification modification)
=> _provenanceFactory.Create(new Reason(""), modification);
protected Provenance CreateProvenance(Modification modification, string reason = "")
=> _provenanceFactory.Create(new Reason(reason), modification);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public async Task<IActionResult> ProposeForMunicipalityMerger(
x.Key.StreetName,
x.Key.HomonymAddition,
x.Value)).ToList(),
new ProvenanceData(CreateProvenance(Modification.Insert)))
new ProvenanceData(CreateProvenance(Modification.Insert, $"Fusie {nisCode}")))
, cancellationToken);

return Accepted(result);
Expand Down

0 comments on commit fbc2bd7

Please sign in to comment.