diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-09 01:34:22 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-09 01:34:22 +0900 |
| commit | 12811d60568c8fb47a7491c48b9937df4f9ddf5a (patch) | |
| tree | 75a24185109cf3fa3c76b749f0402370a8806caf /src/api/endpoints/auth | |
| parent | nanka iroiro (diff) | |
| download | sharkey-12811d60568c8fb47a7491c48b9937df4f9ddf5a.tar.gz sharkey-12811d60568c8fb47a7491c48b9937df4f9ddf5a.tar.bz2 sharkey-12811d60568c8fb47a7491c48b9937df4f9ddf5a.zip | |
[API] Fix bug
Diffstat (limited to 'src/api/endpoints/auth')
| -rw-r--r-- | src/api/endpoints/auth/accept.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/endpoints/auth/accept.js b/src/api/endpoints/auth/accept.js index 04927ae50e..603f7d93a9 100644 --- a/src/api/endpoints/auth/accept.js +++ b/src/api/endpoints/auth/accept.js @@ -88,7 +88,9 @@ module.exports = (params, user) => // Update session await AuthSess.update(session._id, { - user_id: user._id + $set: { + user_id: user._id + } }); // Response |