diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-05-22 20:58:25 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-05-25 17:32:16 +0200 |
commit | e02643f32e4c97ca307f8fc5b69be79c40d70a3b (patch) | |
tree | b7f6269913cd5a0e4f26a9461a043deb0c168be0 /server/lib/oauth-model.ts | |
parent | 65fcc3119c334b75dd13bcfdebf186afdc580a8f (diff) | |
download | PeerTube-e02643f32e4c97ca307f8fc5b69be79c40d70a3b.tar.gz PeerTube-e02643f32e4c97ca307f8fc5b69be79c40d70a3b.tar.zst PeerTube-e02643f32e4c97ca307f8fc5b69be79c40d70a3b.zip |
Type models
Diffstat (limited to 'server/lib/oauth-model.ts')
-rw-r--r-- | server/lib/oauth-model.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/oauth-model.ts b/server/lib/oauth-model.ts index 00b1afcf5..3bdf0f478 100644 --- a/server/lib/oauth-model.ts +++ b/server/lib/oauth-model.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | const db = require('../initializers/database') | 1 | import { database as db } from '../initializers/database' |
2 | import { logger } from '../helpers' | 2 | import { logger } from '../helpers' |
3 | 3 | ||
4 | // --------------------------------------------------------------------------- | 4 | // --------------------------------------------------------------------------- |
@@ -72,7 +72,7 @@ function saveToken (token, client, user) { | |||
72 | userId: user.id | 72 | userId: user.id |
73 | } | 73 | } |
74 | 74 | ||
75 | return db.OAuthToken.create(tokenToCreate).then(function (tokenCreated) { | 75 | return db.OAuthToken.create(tokenToCreate).then(function (tokenCreated: any) { |
76 | tokenCreated.client = client | 76 | tokenCreated.client = client |
77 | tokenCreated.user = user | 77 | tokenCreated.user = user |
78 | 78 | ||