mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-02 11:37:54 +00:00
Adding default subscriber entity.
This commit is contained in:
@@ -227,7 +227,7 @@ namespace OpenWifi {
|
|||||||
void Storage::CreateDefaultSubscriberEntity() {
|
void Storage::CreateDefaultSubscriberEntity() {
|
||||||
|
|
||||||
std::vector<ProvObjects::Entity> Entities;
|
std::vector<ProvObjects::Entity> Entities;
|
||||||
if(EntityDB().GetRecords(0,1,Entities, " where type='subscriber' and defaultEntity=true ")) {
|
if(EntityDB().GetRecords(0,1,Entities, " type='subscriber' and defaultEntity=true ")) {
|
||||||
DefaultSubscriberEntity_ = Entities[0].info.id;
|
DefaultSubscriberEntity_ = Entities[0].info.id;
|
||||||
} else {
|
} else {
|
||||||
ProvObjects::Entity DefEntity;
|
ProvObjects::Entity DefEntity;
|
||||||
|
|||||||
Reference in New Issue
Block a user