fix: revert fix for 1.12.0

This commit is contained in:
Aliaksei 2023-10-04 14:48:24 +01:00 committed by GitHub
parent 6df591654e
commit 5d041f6db6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ router.get("/", auth.isAuthorized, async function (req, res) {
api
.get("controller/network/" + nwid + "/member")
.then(async function (controllerRes) {
const mids = controllerRes.data.map((i) => Object.keys(i)[0]);
const mids = Object.keys(controllerRes.data);
const data = await member.getMembersData(nwid, mids);
res.send(data);
})