diff --git a/.gitignore b/.gitignore index f1e1d9ba..f361a166 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ test_scripts/curl/result.json *.swp helm/charts/* !helm/charts/.gitkeep +/portal-test/ diff --git a/src/RESTAPI/RESTAPI_devices_handler.cpp b/src/RESTAPI/RESTAPI_devices_handler.cpp index 9cfc5870..bb880fbc 100644 --- a/src/RESTAPI/RESTAPI_devices_handler.cpp +++ b/src/RESTAPI/RESTAPI_devices_handler.cpp @@ -98,7 +98,7 @@ namespace OpenWifi { if (!QB_.Select.empty()) { Poco::JSON::Array Objects; for (auto &i : SelectedRecords()) { - auto SerialNumber = i; + auto &SerialNumber = i; if (!Utils::ValidSerialNumber(i)) continue; GWObjects::Device D;