From a956f52e25578dcc78c1b207f93516b0c29514d8 Mon Sep 17 00:00:00 2001 From: Kaive Young Date: Thu, 19 Sep 2024 17:00:00 +0800 Subject: [PATCH] fix postgres delete network fix postgres delete network --- controller/PostgreSQL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);