mirror of
https://github.com/LBRYFoundation/curate.git
synced 2025-08-23 09:27:24 +00:00
Fix abandonall
This commit is contained in:
parent
c7b0e60790
commit
2b79705d27
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ module.exports = class AbaondonAll extends Command {
|
|||
header: 'Are you sure you want to abandon **all supports** from **all accounts**?'
|
||||
})) return;
|
||||
await this.client.startTyping(message.channel);
|
||||
await Util.LBRY.syncPairs();
|
||||
await Util.LBRY.syncPairs(this.client);
|
||||
const pairs = await this.client.sqlite.getAll();
|
||||
let count = 0;
|
||||
for (let i = 0, len = pairs.length; i < len; i++) {
|
||||
|
|
|
@ -10,7 +10,7 @@ module.exports = class ListAll extends Command {
|
|||
async exec(message) {
|
||||
const pairs = await this.client.sqlite.getAll();
|
||||
if (pairs <= 0)
|
||||
return message.channel.createMessage('No pairs found in the database.');
|
||||
return message.channel.createMessage('No users found in the database.');
|
||||
|
||||
for (const pair of pairs) {
|
||||
const response = await this.client.lbry.accountBalance(pair.lbryID);
|
||||
|
|
Loading…
Add table
Reference in a new issue