From a3bcd415de65a6ae14ea451d7d1c8f3f136e99d4 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 5 Sep 2022 20:59:59 -0700 Subject: fix db imports --- routes/assets.js | 3 ++- routes/users.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'routes') diff --git a/routes/assets.js b/routes/assets.js index eaf15398..4ff2577c 100644 --- a/routes/assets.js +++ b/routes/assets.js @@ -1,4 +1,6 @@ import store from "$lib/store"; +import db from "$db"; +import config from "$config"; import app from "$app"; import { auth } from "$lib/passport"; import axios from 'axios'; @@ -30,7 +32,6 @@ let fetchAssets; app.get( "/assets", async (req, res) => { - throw new Error("BOOM"); if (store.assets) { const accounts = await db.Account.findAll({ // group: ["asset"] diff --git a/routes/users.js b/routes/users.js index 7a8c6785..c6a8ec6a 100644 --- a/routes/users.js +++ b/routes/users.js @@ -13,6 +13,7 @@ import { fromBase58, fromPrivateKey } from "bip32"; import { Mutex } from "async-mutex"; import bip32 from "bip32"; import whitelist from "$lib/whitelist"; +import { l, err, warn } from "$lib/logging"; const pick = (O, ...K) => K.reduce((o, k) => ((o[k] = O[k]), o), {}); -- cgit v1.2.3