diff options
| author | Adam Soltys <[email protected]> | 2020-04-28 22:09:22 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-04-28 22:33:02 -0700 |
| commit | 63c18105e6c66b3b4698c398f356bef1b496816f (patch) | |
| tree | e7ee85e7c3502ed81954448a76be028143990948 /lib/utils.js | |
| parent | 994dd93f6c45c590ae59a699cbf425d96518da1e (diff) | |
| download | coinos-server-63c18105e6c66b3b4698c398f356bef1b496816f.tar.gz coinos-server-63c18105e6c66b3b4698c398f356bef1b496816f.zip | |
include account in emitted payments objects
Diffstat (limited to 'lib/utils.js')
| -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; |
