diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-17 11:11:22 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-17 11:11:22 +0900 |
| commit | 9f81288fccdbaf9184d49e61680747945b34f23d (patch) | |
| tree | dce25db34136ffd9c05852ed4c2c493c23c96c07 /src/api/endpoints/auth | |
| parent | Fix bug (diff) | |
| download | sharkey-9f81288fccdbaf9184d49e61680747945b34f23d.tar.gz sharkey-9f81288fccdbaf9184d49e61680747945b34f23d.tar.bz2 sharkey-9f81288fccdbaf9184d49e61680747945b34f23d.zip | |
Fix bug
Diffstat (limited to 'src/api/endpoints/auth')
| -rw-r--r-- | src/api/endpoints/auth/accept.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/api/endpoints/auth/accept.js b/src/api/endpoints/auth/accept.js index 131a0e5611..fce4fdc9cd 100644 --- a/src/api/endpoints/auth/accept.js +++ b/src/api/endpoints/auth/accept.js @@ -87,12 +87,8 @@ module.exports = (params, user) => } // Update session - await AuthSess.updateOne({ - _id: session._id - }, { - $set: { - user_id: user._id - } + await AuthSess.update(session._id, { + user_id: user._id }); // Response |