diff options
| author | Adam Soltys <[email protected]> | 2022-11-02 19:58:00 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-02 19:58:03 -0700 |
| commit | 7d5a9b5a8f82fc4b6c2849dfb5b7f27a2b54a912 (patch) | |
| tree | 35f1c5dceca5e7d0df475266f75bd7ac856b4475 /routes | |
| parent | bf262fde314bd33f5040eccb5ac775ed92d6b766 (diff) | |
| download | coinos-server-7d5a9b5a8f82fc4b6c2849dfb5b7f27a2b54a912.tar.gz coinos-server-7d5a9b5a8f82fc4b6c2849dfb5b7f27a2b54a912.zip | |
set with_id
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 da8dfca0..b142eb3a 100644 --- a/routes/users.js +++ b/routes/users.js @@ -57,7 +57,7 @@ app.get("/users/:username", async (req, res) => { const { username } = req.params; const user = await db.User.findOne({ - attributes: ["username", "banner", "profile", "address"], + attributes: ["username", "banner", "profile", "address", "currency"], where: Sequelize.where( Sequelize.fn("lower", Sequelize.col("username")), username.toLowerCase() |
