diff options
| author | Adam Soltys <[email protected]> | 2022-09-28 12:41:55 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-28 12:41:55 -0700 |
| commit | 200900a51ac64af226c0fc0ca838039d613f3d9f (patch) | |
| tree | 7fe9f418484542e8b7a9f7b8491ebd2ace5ae6b9 /routes | |
| parent | 464b777dc3be59053e13c52b884ab9b26194bbcd (diff) | |
| download | coinos-server-200900a51ac64af226c0fc0ca838039d613f3d9f.tar.gz coinos-server-200900a51ac64af226c0fc0ca838039d613f3d9f.zip | |
return user banner and profile fields
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/users.js b/routes/users.js index ae8788c1..504fea0b 100644 --- a/routes/users.js +++ b/routes/users.js @@ -70,7 +70,7 @@ app.get("/users/:username", async (req, res) => { const { username } = req.params; const user = await db.User.findOne({ - attributes: ["username"], + attributes: ["username", "banner", "profile"], where: Sequelize.where( Sequelize.fn("lower", Sequelize.col("username")), username.toLowerCase() |
