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/request-to-pod.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/request-to-pod.ts')
-rw-r--r-- | server/models/request-to-pod.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/request-to-pod.ts b/server/models/request-to-pod.ts index 3562069cc..d2f31463c 100644 --- a/server/models/request-to-pod.ts +++ b/server/models/request-to-pod.ts | |||
@@ -12,8 +12,8 @@ import { | |||
12 | let RequestToPod: Sequelize.Model<RequestToPodInstance, RequestToPodAttributes> | 12 | let RequestToPod: Sequelize.Model<RequestToPodInstance, RequestToPodAttributes> |
13 | let removeByRequestIdsAndPod: RequestToPodMethods.RemoveByRequestIdsAndPod | 13 | let removeByRequestIdsAndPod: RequestToPodMethods.RemoveByRequestIdsAndPod |
14 | 14 | ||
15 | export default function (sequelize, DataTypes) { | 15 | export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.DataTypes) { |
16 | RequestToPod = sequelize.define('RequestToPod', {}, { | 16 | RequestToPod = sequelize.define<RequestToPodInstance, RequestToPodAttributes>('RequestToPod', {}, { |
17 | indexes: [ | 17 | indexes: [ |
18 | { | 18 | { |
19 | fields: [ 'requestId' ] | 19 | fields: [ 'requestId' ] |