diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 17:35:32 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 17:35:32 +0200 |
commit | 127944aacb52721877449a1f202dc0add866ef39 (patch) | |
tree | 73ac935c7dfc73dca92d15ed52266e40ba9af57a /server/models/oauth-client.ts | |
parent | 294f80f21e8a77d25f6fb5f0f26887fb4618ee2e (diff) | |
download | PeerTube-127944aacb52721877449a1f202dc0add866ef39.tar.gz PeerTube-127944aacb52721877449a1f202dc0add866ef39.tar.zst PeerTube-127944aacb52721877449a1f202dc0add866ef39.zip |
Better models define typing
Diffstat (limited to 'server/models/oauth-client.ts')
-rw-r--r-- | server/models/oauth-client.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/oauth-client.ts b/server/models/oauth-client.ts index 22fae2842..a5438f45a 100644 --- a/server/models/oauth-client.ts +++ b/server/models/oauth-client.ts | |||
@@ -14,8 +14,8 @@ let countTotal: OAuthClientMethods.CountTotal | |||
14 | let loadFirstClient: OAuthClientMethods.LoadFirstClient | 14 | let loadFirstClient: OAuthClientMethods.LoadFirstClient |
15 | let getByIdAndSecret: OAuthClientMethods.GetByIdAndSecret | 15 | let getByIdAndSecret: OAuthClientMethods.GetByIdAndSecret |
16 | 16 | ||
17 | export default function (sequelize, DataTypes) { | 17 | export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.DataTypes) { |
18 | OAuthClient = sequelize.define('OAuthClient', | 18 | OAuthClient = sequelize.define<OAuthClientInstance, OAuthClientAttributes>('OAuthClient', |
19 | { | 19 | { |
20 | clientId: { | 20 | clientId: { |
21 | type: DataTypes.STRING, | 21 | type: DataTypes.STRING, |