diff options
| author | Adam Soltys <[email protected]> | 2019-10-06 20:20:42 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2019-10-06 20:20:42 -0700 |
| commit | 15e3e293ae6b4bf91e8a9ab300fd179c50b883b9 (patch) | |
| tree | 3b637fe476c6126595994b9d8878511724cc0102 | |
| parent | 44b420b2bbf6227d3c35658ce65049de014f0809 (diff) | |
| download | coinos-server-15e3e293ae6b4bf91e8a9ab300fd179c50b883b9.tar.gz coinos-server-15e3e293ae6b4bf91e8a9ab300fd179c50b883b9.zip | |
set user currency on update
| -rw-r--r-- | users.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -85,6 +85,7 @@ module.exports = (addresses, auth, app, bc, db, emit) => { app.post("/user", auth, async (req, res) => { let { user } = req; let { + currency, email, phone, twofa, @@ -106,6 +107,7 @@ module.exports = (addresses, auth, app, bc, db, emit) => { requestPhone(user); } + user.currency = currency; user.email = email; user.phone = phone; user.twofa = twofa; |
