diff --git a/lib/alias.js b/lib/alias.js index bd86079..5b2ff65 100644 --- a/lib/alias.js +++ b/lib/alias.js @@ -54,7 +54,7 @@ export default class Alias extends Now { async createAlias (depl, alias) { return this.retry(async (bail, attempt) => { if (this._debug) console.time(`> [debug] /now/deployments/${depl.uid}/aliases #${attempt}`); - const res = this._fetch(`/now/deployments/${depl.uid}/aliases`, { + const res = await this._fetch(`/now/deployments/${depl.uid}/aliases`, { method: 'POST', body: { alias } }); @@ -137,7 +137,7 @@ export default class Alias extends Now { async createCert (domain) { return this.retry(async (bail, attempt) => { if (this._debug) console.time(`> [debug] /certs #${attempt}`); - const res = this._fetch('/certs', { + const res = await this._fetch('/certs', { method: 'POST', body: { domains: [domain]