From 490f77c0c43b12fa4ba3385ccec7a2b05eb3a8d8 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 9 Nov 2022 22:24:26 -0800 Subject: return user profile with invoice --- routes/invoices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routes') diff --git a/routes/invoices.js b/routes/invoices.js index 198189b4..6cde7de8 100644 --- a/routes/invoices.js +++ b/routes/invoices.js @@ -47,7 +47,7 @@ app.get("/invoice/:text", async (req, res, next) => { include: { model: db.User, as: "user", - attributes: ["username", "currency"] + attributes: ["username", "currency", "profile"] } }); -- cgit v1.2.3