Skip to content

Commit

Permalink
Fix : url was calling to log before initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Eniamza committed Jan 23, 2021
1 parent abe0565 commit b2ec17e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/fulldump.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ let metadata;
let lbryData;
let bye ;

console.log(`Fetching from ${url}`);

let channelClaim = prompt(`Enter Channel Claimid:`);
let url = `https://chainquery.lbry.com/api/sql?query=SELECT%20*%20FROM%20claim%20WHERE%20publisher_id%20=%20%27${channelClaim}%27%20AND%20bid_state%20%3C%3E%20%27Spent%27`;
console.log(`Fetching from ${url}`);
axios.get(url)
.then (response =>{
metadata= response.data;
Expand Down

0 comments on commit b2ec17e

Please sign in to comment.