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/job.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/job.ts')
-rw-r--r-- | server/models/job.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/job.ts b/server/models/job.ts index 1afae8f08..d4380a575 100644 --- a/server/models/job.ts +++ b/server/models/job.ts | |||
@@ -15,7 +15,7 @@ import { | |||
15 | let Job: Sequelize.Model<JobInstance, JobAttributes> | 15 | let Job: Sequelize.Model<JobInstance, JobAttributes> |
16 | let listWithLimit: JobMethods.ListWithLimit | 16 | let listWithLimit: JobMethods.ListWithLimit |
17 | 17 | ||
18 | export default function defineJob (sequelize: Sequelize.Sequelize, DataTypes) { | 18 | export default function defineJob (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.DataTypes) { |
19 | Job = sequelize.define<JobInstance, JobAttributes>('Job', | 19 | Job = sequelize.define<JobInstance, JobAttributes>('Job', |
20 | { | 20 | { |
21 | state: { | 21 | state: { |