From 6f906c289422c9d655e194390bb871b2e276f326 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 14 Oct 2016 20:48:01 -0700 Subject: Reimplement transactions index function with promises --- src/redis.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/redis.coffee') diff --git a/src/redis.coffee b/src/redis.coffee index 38524595..7f28fae0 100644 --- a/src/redis.coffee +++ b/src/redis.coffee @@ -1,5 +1,7 @@ +Promise = require('bluebird') + settings = port: 6379 host: '127.0.0.1' -module.exports = require('redis').createClient(settings.port, settings.host) +module.exports = Promise.promisifyAll(require('redis')).createClient(settings.port, settings.host) -- cgit v1.2.3