From 0e2041d638a4f153ef4fa4aea733e5d8b2122b81 Mon Sep 17 00:00:00 2001 From: Tony Kovanen Date: Tue, 19 Apr 2016 23:53:31 +0300 Subject: [PATCH] Fix body --- lib/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 3893d41..6350253 100644 --- a/lib/index.js +++ b/lib/index.js @@ -186,10 +186,13 @@ export default class Now extends EventEmitter { } async remove (deploymentId) { + const data = { deploymentId }; + await retry(async (bail) => { if (this._debug) console.time('> [debug] /remove'); const res = await this._fetch('/remove', { - method: 'DELETE' + method: 'DELETE', + body: data }); if (this._debug) console.timeEnd('> [debug] /remove');