From 974c0fa9556c294415e5a14d2ba35c2f630b2db7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 13 Oct 2022 15:07:18 -0700 Subject: only return hosted balances --- routes/info.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/routes/info.js b/routes/info.js index 6c2c601d..f3de8907 100644 --- a/routes/info.js +++ b/routes/info.js @@ -38,12 +38,14 @@ app.get("/info", async (req, res, next) => { app.get("/balances", async (req, res, next) => { try { const accounts = await db.Account.findAll({ + where: { + pubkey: null + }, attributes: [ "asset", - "pubkey", [sequelize.fn("sum", sequelize.col("balance")), "total"] ], - group: ["asset", "pubkey"] + group: ["asset"] }); let lnchannel; -- cgit v1.2.3