Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
await on fetch 🤦‍♂️ (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
leggsimon authored Jan 26, 2018
1 parent 094244b commit 9b1e75d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/rebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9b1e75d

Please sign in to comment.