Adding tree import.

This commit is contained in:
stephb9959
2021-09-07 23:15:15 -07:00
parent 3b3e3d68e2
commit a11f412007
2 changed files with 6 additions and 3 deletions

View File

@@ -166,7 +166,9 @@ namespace OpenWifi {
else {
Storage()->EntityDB().AddChild("id",E.parent,E.info.id);
}
Storage()->EntityDB().GetRecord("id",E.info.id,E);
ProvObjects::Entity NE;
Storage()->EntityDB().GetRecord("id",E.info.id,NE);
E = NE;
return true;
}
return false;

View File

@@ -57,8 +57,9 @@ namespace OpenWifi {
Storage()->ContactDB().AddInUse("id",V.contact, Storage()->VenueDB().Prefix(), V.info.id);
if(!V.managementPolicy.empty())
Storage()->PolicyDB().AddInUse("id",V.managementPolicy, Storage()->VenueDB().Prefix(), V.info.id);
Storage()->VenueDB().GetRecord("id",V.info.id,V);
ProvObjects::Venue NV;
Storage()->VenueDB().GetRecord("id",V.info.id,NV);
V = NV;
return true;
}
return false;