promisify all of le-store-

This commit is contained in:
AJ ONeal 2016-08-13 13:54:07 -06:00
parent 42ee5de9fa
commit 7c6c509313
1 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,8 @@ LE.create = function (le) {
le.store = le.store.create(le);
}
le.store = PromiseA.promisifyAll(le.store);
le.store.accounts = PromiseA.promisifyAll(le.store.accounts);
le.store.certificates = PromiseA.promisifyAll(le.store.certificates);
le._storeOpts = le.store.getOptions();
Object.keys(le._storeOpts).forEach(function (key) {
if (!(key in le)) {