aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/payments.js5
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
});