Skip to content

Commit

Permalink
Removed some prints
Browse files Browse the repository at this point in the history
  • Loading branch information
hcaseyal committed Nov 20, 2017
1 parent b59058c commit fdce2b1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,18 @@ function getSummonerInfo(req, res, name) {
}

function getMatchlist(req, res, id) {
console.log("1!!!");
var url = `${baseURL}match/v3/matchlists/by-account/${id}?api_key=${apiKey}`;
console.log(url);
console.log("2!!!");

axios.get(url)
.then(response => {
console.log("3!!!");
fs.writeFile("matchlist_" + id, JSON.stringify(response.data), function(err) {
if(err) {
console.log("4!!!!!!!");
console.log(err);
}
else {
console.log("File saved");
}
});
console.log("5!!!!");
res.send(response.data);
console.log(response);
})
Expand Down

0 comments on commit fdce2b1

Please sign in to comment.