Update bluebird and use the delay helper.

This commit is contained in:
Page 2014-03-19 19:58:15 +00:00 committed by Pablo Carranza Vélez
parent b65e3fd3f9
commit 2d6f0a7e6d
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
"csr-gen": "~0.2.1",
"dockerode": "~0.2.5",
"knex": "~0.5.1",
"bluebird": "~0.11.5-0",
"bluebird": "~1.1.1",
"JSONStream": "~0.7.1",
"event-stream": "~3.0.20",
"sqlite3": "~2.1.19"

View File

@ -10,7 +10,7 @@ LED_FILE = '/sys/class/leds/led0/brightness'
blink = (ms = 200) ->
fs.writeFileAsync(LED_FILE, 1)
.then -> utils.delay(ms)
.delay(ms)
.then -> fs.writeFileAsync(LED_FILE, 0)
api.post '/v1/blink', (req, res) ->