summaryrefslogtreecommitdiff
path: root/src/api/authenticate.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-28 16:39:14 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-28 16:39:14 +0900
commit3d5cdb8d2d60932caf1d29b0581c7d6243e06e37 (patch)
tree9c29d1062b08378d4c4cafe5976793616d45bc01 /src/api/authenticate.ts
parentwip (diff)
downloadsharkey-3d5cdb8d2d60932caf1d29b0581c7d6243e06e37.tar.gz
sharkey-3d5cdb8d2d60932caf1d29b0581c7d6243e06e37.tar.bz2
sharkey-3d5cdb8d2d60932caf1d29b0581c7d6243e06e37.zip
wip
Diffstat (limited to 'src/api/authenticate.ts')
-rw-r--r--src/api/authenticate.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/authenticate.ts b/src/api/authenticate.ts
index 537c3d1e1f..7b3983a838 100644
--- a/src/api/authenticate.ts
+++ b/src/api/authenticate.ts
@@ -55,10 +55,10 @@ export default (req: express.Request) => new Promise<IAuthContext>(async (resolv
}
const app = await App
- .findOne({ _id: accessToken.app_id });
+ .findOne({ _id: accessToken.appId });
const user = await User
- .findOne({ _id: accessToken.user_id });
+ .findOne({ _id: accessToken.userId });
return resolve({
app: app,