From 5a552347b012cdebf1b5bc4834d650a1e97bfd3d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 8 Sep 2022 17:03:45 -0400 Subject: misc fixes --- routes/info.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'routes/info.js') diff --git a/routes/info.js b/routes/info.js index c7d39160..63f353a5 100644 --- a/routes/info.js +++ b/routes/info.js @@ -9,6 +9,7 @@ import lnd from "$lib/lnd"; import { getChannelBalance, getChainBalance } from "lightning"; import sequelize from "@sequelize/core"; +import { SATS } from "$lib/utils"; const { Op } = sequelize; @@ -34,6 +35,7 @@ app.get("/info", async (req, res, next) => { }); app.get("/balances", async (req, res, next) => { + try { const accounts = await db.Account.findAll({ attributes: [ "asset", @@ -90,4 +92,7 @@ app.get("/balances", async (req, res, next) => { parseInt(lnwallet); res.send(info); + } catch(e) { + console.log("problem getting balances", e) + } }); -- cgit v1.2.3