diff options
| -rw-r--r-- | routes/info.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/info.js b/routes/info.js index 5f9e06df..f8a0fa72 100644 --- a/routes/info.js +++ b/routes/info.js @@ -17,9 +17,10 @@ app.get("/balances", ah(async (req, res, next) => { const accounts = await db.Account.findAll({ attributes: [ "asset", + "pubkey", [sequelize.fn("sum", sequelize.col("balance")), "total"] ], - group: ["asset"], + group: ["asset", "pubkey"], }); let lnchannel; |
