diff --git a/lib/fetch-url.js b/lib/fetch-url.js index 6ab7614..9f3e2d9 100644 --- a/lib/fetch-url.js +++ b/lib/fetch-url.js @@ -6,7 +6,7 @@ const request = require("request"); module.exports = (urlObj, service) => { return new Promise((resolve, reject) => { if (typeof urlObj == "string") { - urlObj = { urlObj }; + urlObj = { url: urlObj }; } urlObj.headers = { "User-Agent": "pr-preview" }; request(urlObj, function (error, response, body) {