Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
Include node number in node object array element.
Browse files Browse the repository at this point in the history
  • Loading branch information
echicken committed Aug 31, 2018
1 parent ab5deb9 commit 830c1a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/root/api/system.ssjs
Expand Up @@ -20,10 +20,11 @@ if ((http_request.method === 'GET' || http_request.method === 'POST') &&

case 'node-list':
var usr = new User(1);
reply = system.node_list.reduce(function (a, c) {
reply = system.node_list.reduce(function (a, c, i) {
if (c.status !== 3) return a;
usr.number = c.useron;
a.push({
node : i,
status : format(NodeStatus[c.status], c.aux, c.extaux),
action : format(NodeAction[c.action], c.aux, c.extaux),
user : usr.alias,
Expand Down

0 comments on commit 830c1a6

Please sign in to comment.