mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-05 20:41:43 -07:00
fix(backend/routes/network.js): fixes bug after refactor
This commit is contained in:
parent
6efde52086
commit
29ab3b7529
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ router.post("/", auth.isAuthorized, async function (req, res) {
|
|||
api
|
||||
.post("controller/network/" + ZT_ADDRESS + "______", reqData)
|
||||
.then(async function (controllerRes) {
|
||||
await network.createNetworkAdditionalData(controllerRes.data);
|
||||
await network.createNetworkAdditionalData(controllerRes.data.id);
|
||||
const data = await network.getNetworksData([controllerRes.data.id]);
|
||||
res.send(data[0]);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue