aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/user-video-rate.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-11 17:35:32 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-11 17:35:32 +0200
commit127944aacb52721877449a1f202dc0add866ef39 (patch)
tree73ac935c7dfc73dca92d15ed52266e40ba9af57a /server/models/user-video-rate.ts
parent294f80f21e8a77d25f6fb5f0f26887fb4618ee2e (diff)
downloadPeerTube-127944aacb52721877449a1f202dc0add866ef39.tar.gz
PeerTube-127944aacb52721877449a1f202dc0add866ef39.tar.zst
PeerTube-127944aacb52721877449a1f202dc0add866ef39.zip
Better models define typing
Diffstat (limited to 'server/models/user-video-rate.ts')
-rw-r--r--server/models/user-video-rate.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/user-video-rate.ts b/server/models/user-video-rate.ts
index 6b71e8412..0326e1796 100644
--- a/server/models/user-video-rate.ts
+++ b/server/models/user-video-rate.ts
@@ -19,8 +19,8 @@ import {
19let UserVideoRate: Sequelize.Model<UserVideoRateInstance, UserVideoRateAttributes> 19let UserVideoRate: Sequelize.Model<UserVideoRateInstance, UserVideoRateAttributes>
20let load: UserVideoRateMethods.Load 20let load: UserVideoRateMethods.Load
21 21
22export default function (sequelize, DataTypes) { 22export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.DataTypes) {
23 UserVideoRate = sequelize.define('UserVideoRate', 23 UserVideoRate = sequelize.define<UserVideoRateInstance, UserVideoRateAttributes>('UserVideoRate',
24 { 24 {
25 type: { 25 type: {
26 type: DataTypes.ENUM(values(VIDEO_RATE_TYPES)), 26 type: DataTypes.ENUM(values(VIDEO_RATE_TYPES)),