Skip to content

Commit

Permalink
fix(backend/routes/network.js): fixes bug after refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dec0dOS committed Apr 16, 2021
1 parent 12cbef1 commit 112476e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/routes/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
});
Expand Down

0 comments on commit 112476e

Please sign in to comment.