From 9b1e75d766738275078e96539159c367db78ab7c Mon Sep 17 00:00:00 2001 From: Simon Legg Date: Fri, 26 Jan 2018 15:32:55 +0000 Subject: [PATCH] =?UTF-8?q?await=20on=20fetch=20=F0=9F=A4=A6=E2=80=8D?= =?UTF-8?q?=E2=99=82=EF=B8=8F=20(#495)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/rebuild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/rebuild.js b/tasks/rebuild.js index ec5ef566..a74f27ab 100644 --- a/tasks/rebuild.js +++ b/tasks/rebuild.js @@ -20,7 +20,7 @@ async function circleFetch (path, opts) { const circleToken = await getCircleToken(); const options = Object.assign(defaultOptions, opts); const url = `https://circleci.com/api/v1${path}?circle-token=${circleToken}`; - const res = fetch(url, options); + const res = await fetch(url, options); if (res.ok) { return await res.json();