From f89b0ffde25292909bd398430e84e6c693084582 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 9 Aug 2020 22:13:47 -0700 Subject: handle receiving to non-custodial account --- lib/passport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/passport.js b/lib/passport.js index 660233ca..b26b445e 100644 --- a/lib/passport.js +++ b/lib/passport.js @@ -20,7 +20,7 @@ passport = Passport.use( async (payload, next) => { const { username } = payload; try { - next(null, await db.User.findOne({ where: { username } })); + next(null, await db.User.findOne({ where: { username }, include: { model: db.Account, as: 'account' } })); } catch (e) { l.error("error finding user for session", e); next(null, { username: "guest" }); -- cgit v1.2.3