Commit cb238381 authored by Erick Hitter's avatar Erick Hitter

Correct how keys are iterated

parent d1042c2d
......@@ -136,7 +136,9 @@ app.get('/api/status/:lock_name', function(req, res){
});
config.forEach( function( lockConfig, lockName ) {
Object.keys(config).forEach( function( lockName ) {
var lockConfig = config[lockName];
augustctl.scan(lockConfig.lockUuid).then(function (peripheral) {
var lock = new augustctl.Lock(
peripheral,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment