diff options
| author | Adam Soltys <[email protected]> | 2022-11-03 01:28:29 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-03 01:28:29 -0700 |
| commit | da2a1713b13b31310843136eeaabe524c4eee42c (patch) | |
| tree | e0b575fdc59535bd6d60b2f069933627a8601c0d /routes | |
| parent | 7d5a9b5a8f82fc4b6c2849dfb5b7f27a2b54a912 (diff) | |
| download | coinos-server-da2a1713b13b31310843136eeaabe524c4eee42c.tar.gz coinos-server-da2a1713b13b31310843136eeaabe524c4eee42c.zip | |
with relation
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/payments.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/routes/payments.js b/routes/payments.js index 678b646c..999cba36 100644 --- a/routes/payments.js +++ b/routes/payments.js @@ -125,6 +125,11 @@ app.get("/payments", auth, async (req, res) => { model: db.Account, as: "account" }, + include: { + attrs: ["username", "profile"], + model: db.User, + as: "with" + }, limit, offset }); |
