Adding default subscriber entity.

This commit is contained in:
stephb9959
2022-04-05 16:34:19 -07:00
parent 9d6ffbe25c
commit 15c0220f73

View File

@@ -227,7 +227,7 @@ namespace OpenWifi {
void Storage::CreateDefaultSubscriberEntity() {
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;
} else {
ProvObjects::Entity DefEntity;