diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/utils.js | 12 |
1 files changed, 10 insertions, 2 deletions
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; |
