From 9f81288fccdbaf9184d49e61680747945b34f23d Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 17 Jan 2017 11:11:22 +0900 Subject: Fix bug --- src/api/endpoints/auth/accept.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/api/endpoints/auth') 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 -- cgit v1.2.3-freya