diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-03-28 17:05:36 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-28 17:05:36 +0900 |
| commit | 46e530ef41bb640cfa66438e888d1ecd6f90f6bb (patch) | |
| tree | a23eefae5e437ad6adc7dfe190daba81138aa70b /src/api/authenticate.ts | |
| parent | #1294 (diff) | |
| parent | oops (diff) | |
| download | sharkey-46e530ef41bb640cfa66438e888d1ecd6f90f6bb.tar.gz sharkey-46e530ef41bb640cfa66438e888d1ecd6f90f6bb.tar.bz2 sharkey-46e530ef41bb640cfa66438e888d1ecd6f90f6bb.zip | |
Merge pull request #1324 from syuilo/#1288-2
snake_case を camelCase にするなどした
Diffstat (limited to 'src/api/authenticate.ts')
| -rw-r--r-- | src/api/authenticate.ts | 4 |
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, |