diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-20 17:38:05 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-20 17:38:05 +0900 |
| commit | e31eec542fdf1aa090a39c3df67d3386edaba55e (patch) | |
| tree | 332896e0f998a0e204e1918fe523c7b3b08fb93e /src/api/endpoints/auth | |
| parent | [Test] Fix test (diff) | |
| download | sharkey-e31eec542fdf1aa090a39c3df67d3386edaba55e.tar.gz sharkey-e31eec542fdf1aa090a39c3df67d3386edaba55e.tar.bz2 sharkey-e31eec542fdf1aa090a39c3df67d3386edaba55e.zip | |
[API] Fix bugs
Diffstat (limited to 'src/api/endpoints/auth')
| -rw-r--r-- | src/api/endpoints/auth/session/generate.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/endpoints/auth/session/generate.js b/src/api/endpoints/auth/session/generate.js index f67209eee3..6cc124f9ec 100644 --- a/src/api/endpoints/auth/session/generate.js +++ b/src/api/endpoints/auth/session/generate.js @@ -66,14 +66,12 @@ module.exports = (params) => const token = uuid.v4(); // Create session token document - const inserted = await AuthSess.insert({ + const doc = await AuthSess.insert({ created_at: new Date(), app_id: app._id, token: token }); - const doc = inserted.ops[0]; - // Response res({ token: doc.token, |