diff options
| author | Adam Soltys <[email protected]> | 2022-10-13 15:07:18 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-18 21:58:51 -0700 |
| commit | d97b2543f6b9b5a969e2f9fa93f6064b543a58c5 (patch) | |
| tree | d214a8ed19115f8a7301dd8533fb338e688b1cb8 | |
| parent | 95507964eaa529412c0cc2f8153aa9f35636d4bc (diff) | |
| download | coinos-server-d97b2543f6b9b5a969e2f9fa93f6064b543a58c5.tar.gz coinos-server-d97b2543f6b9b5a969e2f9fa93f6064b543a58c5.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; |
