From 63c18105e6c66b3b4698c398f356bef1b496816f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 28 Apr 2020 22:09:22 -0700 Subject: include account in emitted payments objects --- lib/utils.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/utils.js') diff --git a/lib/utils.js b/lib/utils.js index 98409efc..a861f8b7 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -30,7 +30,11 @@ getUser = async username => { } } }, - limit: 12 + limit: 12, + include: { + model: db.Account, + as: "account" + } }); return user; @@ -65,7 +69,11 @@ getUserById = async id => { } } }, - limit: 12 + limit: 12, + include: { + model: db.Account, + as: "account" + } }); return user; -- cgit v1.2.3