Merge pull request #44 from PepperDash/feature/destinationLists-merge

add 'destinationLists' object to merge method
This commit is contained in:
Andrew Welker 2020-07-17 18:08:45 -07:00 committed by GitHub
commit 76443f0825
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,6 +93,12 @@ namespace PepperDash.Core.Config
else
merged.Add("sourceLists", Merge(template["sourceLists"], system["sourceLists"], "sourceLists"));
if (system["destinationLists"] == null)
merged.Add("destinationLists", template["destinationLists"]);
else
merged.Add("destinationLists",
Merge(template["destinationLists"], system["destinationLists"], "destinationLists"));
// Template tie lines take precedence. Config tool doesn't do them at system
// level anyway...
if (template["tieLines"] != null)