bug fixes

This commit is contained in:
Niko Storni 2018-11-27 17:21:42 -05:00
parent c02e364759
commit b8ef2ee9ec
No known key found for this signature in database
GPG key ID: F37FE63398800368

View file

@ -50,7 +50,7 @@ function init(discordBot_) {
}, 60 * 1000);
//announceClaims();
}
).catch(console.error);
);
}
function announceClaimsV2() {
@ -137,8 +137,8 @@ function getClaimsForLastBlock() {
request(options, function(error, response, body) {
if (error) return reject(error);
if (response.statusCode !== 200 || !body) return reject(response);
if (!body.success || body.error) return reject(response);
if (response.statusCode !== 200 || body === null) return reject(response);
if (body.success === false || body.error !== null) return reject(body);
let claimsInBlock = body.data;
return resolve(claimsInBlock);
});