diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index e4a31ba28..ef1c0f160 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -1648,7 +1648,7 @@ void PostgreSQL::commitThread() try { pqxx::work w(*c->c); - std::string networkId = config["nwid"]; + std::string networkId = config["id"]; pqxx::result res = w.exec_params0("UPDATE ztc_network SET deleted = true WHERE id = $1", networkId);