sso query fix in controller

This commit is contained in:
Grant Limberg 2026-03-31 14:04:30 -07:00
parent 78b25f4ae2
commit dd6e69f530
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735

View file

@ -512,7 +512,7 @@ AuthInfo CentralDB::getSSOAuthInfo(const nlohmann::json& member, const std::stri
// check if the member exists first.
pqxx::row count =
w.exec("SELECT count(id) FROM network_memberships_ctl WHERE device_id = $1 AND network_id = $2",
w.exec("SELECT count(*) FROM network_memberships_ctl WHERE device_id = $1 AND network_id = $2",
pqxx::params { memberId, networkId })
.one_row();
if (count[0].as<int>() == 1) {