From d3ed44132dfa9f7e09849dcf40c2ed6f12536212 Mon Sep 17 00:00:00 2001 From: Jarmo Isotalo Date: Tue, 7 Mar 2017 22:36:48 +0200 Subject: [PATCH] Fix happy side effectss on domain setup (#372) --- lib/alias.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/alias.js b/lib/alias.js index fcada1b..490c38f 100644 --- a/lib/alias.js +++ b/lib/alias.js @@ -96,7 +96,7 @@ module.exports = class Alias extends Now { } async updatePathBasedroutes(alias, rules) { - await this.maybeSetUpDomain(alias) + alias = await this.maybeSetUpDomain(alias) return await this.upsertPathAlias(alias, rules) } @@ -240,7 +240,7 @@ module.exports = class Alias extends Now { } } - await this.maybeSetUpDomain(alias) + alias = await this.maybeSetUpDomain(alias) const newAlias = await this.createAlias(depl, alias) if (!newAlias) { @@ -531,6 +531,7 @@ module.exports = class Alias extends Now { console.log(`> Verification ${chalk.bold('OK')}!`) } + return alias } verifyOwnership(domain) {