From 6bbe39a682a56e79cd7b9ea81fdec19766a7008c Mon Sep 17 00:00:00 2001 From: Moritz Hoffmann Date: Fri, 18 Nov 2016 04:35:45 +0100 Subject: [PATCH] Fix universeAsObject is not a function error --- dmx-web.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dmx-web.js b/dmx-web.js index 473bd30..9f1dd99 100755 --- a/dmx-web.js +++ b/dmx-web.js @@ -71,7 +71,7 @@ function DMXWeb() { return } - res.json({"state": dmx.universeAsObject(req.params.universe)}) + res.json({"state": dmx.universeToObject(req.params.universe)}) }) app.post('/state/:universe', function(req, res) { @@ -81,7 +81,7 @@ function DMXWeb() { } dmx.update(req.params.universe, req.body) - res.json({"state": dmx.universeAsObject(req.params.universe)}) + res.json({"state": dmx.universeToObject(req.params.universe)}) }) app.post('/animation/:universe', function(req, res) { @@ -89,7 +89,7 @@ function DMXWeb() { var universe = dmx.universes[req.params.universe] // preserve old states - var old = dmx.universeAsObject(req.params.universe) + var old = dmx.universeToObject(req.params.universe) var animation = new A() for(var step in req.body) {