mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
bug fixes
This commit is contained in:
parent
c02e364759
commit
b8ef2ee9ec
1 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@ function init(discordBot_) {
|
||||||
}, 60 * 1000);
|
}, 60 * 1000);
|
||||||
//announceClaims();
|
//announceClaims();
|
||||||
}
|
}
|
||||||
).catch(console.error);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function announceClaimsV2() {
|
function announceClaimsV2() {
|
||||||
|
@ -137,8 +137,8 @@ function getClaimsForLastBlock() {
|
||||||
|
|
||||||
request(options, function(error, response, body) {
|
request(options, function(error, response, body) {
|
||||||
if (error) return reject(error);
|
if (error) return reject(error);
|
||||||
if (response.statusCode !== 200 || !body) return reject(response);
|
if (response.statusCode !== 200 || body === null) return reject(response);
|
||||||
if (!body.success || body.error) return reject(response);
|
if (body.success === false || body.error !== null) return reject(body);
|
||||||
let claimsInBlock = body.data;
|
let claimsInBlock = body.data;
|
||||||
return resolve(claimsInBlock);
|
return resolve(claimsInBlock);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue