fix(backend/routes/network.js): fixes bug after refactor

This commit is contained in:
dec0dOS 2021-04-16 14:53:08 +03:00
parent 6efde52086
commit 29ab3b7529

View file

@ -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]);
});