|
@ -186,10 +186,13 @@ export default class Now extends EventEmitter { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async remove (deploymentId) { |
|
|
async remove (deploymentId) { |
|
|
|
|
|
const data = { deploymentId }; |
|
|
|
|
|
|
|
|
await retry(async (bail) => { |
|
|
await retry(async (bail) => { |
|
|
if (this._debug) console.time('> [debug] /remove'); |
|
|
if (this._debug) console.time('> [debug] /remove'); |
|
|
const res = await this._fetch('/remove', { |
|
|
const res = await this._fetch('/remove', { |
|
|
method: 'DELETE' |
|
|
method: 'DELETE', |
|
|
|
|
|
body: data |
|
|
}); |
|
|
}); |
|
|
if (this._debug) console.timeEnd('> [debug] /remove'); |
|
|
if (this._debug) console.timeEnd('> [debug] /remove'); |
|
|
|
|
|
|
|
|