Merge pull request #20 from xuio/master

Fix universeAsObject is not a function
This commit is contained in:
Sebastian Wiedenroth 2016-11-18 15:18:34 +01:00 committed by GitHub
commit faed129329

View file

@ -71,7 +71,7 @@ function DMXWeb() {
return return
} }
res.json({"state": dmx.universeAsObject(req.params.universe)}) res.json({"state": dmx.universeToObject(req.params.universe)})
}) })
app.post('/state/:universe', function(req, res) { app.post('/state/:universe', function(req, res) {
@ -81,7 +81,7 @@ function DMXWeb() {
} }
dmx.update(req.params.universe, req.body) 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) { app.post('/animation/:universe', function(req, res) {
@ -89,7 +89,7 @@ function DMXWeb() {
var universe = dmx.universes[req.params.universe] var universe = dmx.universes[req.params.universe]
// preserve old states // preserve old states
var old = dmx.universeAsObject(req.params.universe) var old = dmx.universeToObject(req.params.universe)
var animation = new A() var animation = new A()
for(var step in req.body) { for(var step in req.body) {