diff options
| author | Adam Soltys <[email protected]> | 2022-10-13 15:07:18 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-13 15:07:21 -0700 |
| commit | 974c0fa9556c294415e5a14d2ba35c2f630b2db7 (patch) | |
| tree | 15e3d80950bbff7df0fb67d90f51de0d5121b821 | |
| parent | 07f3efec64feb9c9a71fbab94efabfb8f05f2fe2 (diff) | |
| download | coinos-server-974c0fa9556c294415e5a14d2ba35c2f630b2db7.tar.gz coinos-server-974c0fa9556c294415e5a14d2ba35c2f630b2db7.zip | |
only return hosted balances
| -rw-r--r-- | routes/info.js | 6 |
1 files 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; |
