From 9b84d88a8cbd4a004a0b68950e9dab144871fb23 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 20 Dec 2015 02:10:10 +0000 Subject: [PATCH] bugfixes --- lib/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core.js b/lib/core.js index 7472c95..9f9e5f1 100644 --- a/lib/core.js +++ b/lib/core.js @@ -107,7 +107,7 @@ function writeCertificateAsync(result, args, defaults, handlers) { // TODO XXX end // yes, it's an array. weird, right? , webrootPath: args.webrootPath && [args.webrootPath] || [] - , account: account.accountId + , account: args.account.accountId , server: args.server || args.acmeDiscoveryUrl , logsDir: args.logsDir }; @@ -209,7 +209,7 @@ function getCertificateAsync(account, args, defaults, handlers) { } }); }).then(function (results) { - writeCertificateAsync(results, args, defaults, handlers); + return writeCertificateAsync(results, args, defaults, handlers); }); }