Browse Source

Fix happy side effectss on domain setup (#372)

master
Jarmo Isotalo 8 years ago
committed by Matheus Fernandes
parent
commit
d3ed44132d
  1. 5
      lib/alias.js

5
lib/alias.js

@ -96,7 +96,7 @@ module.exports = class Alias extends Now {
} }
async updatePathBasedroutes(alias, rules) { async updatePathBasedroutes(alias, rules) {
await this.maybeSetUpDomain(alias) alias = await this.maybeSetUpDomain(alias)
return await this.upsertPathAlias(alias, rules) 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) const newAlias = await this.createAlias(depl, alias)
if (!newAlias) { if (!newAlias) {
@ -531,6 +531,7 @@ module.exports = class Alias extends Now {
console.log(`> Verification ${chalk.bold('OK')}!`) console.log(`> Verification ${chalk.bold('OK')}!`)
} }
return alias
} }
verifyOwnership(domain) { verifyOwnership(domain) {

Loading…
Cancel
Save