diff options
Diffstat (limited to 'server/models/user/user-video-rate-interface.ts')
-rw-r--r-- | server/models/user/user-video-rate-interface.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/models/user/user-video-rate-interface.ts b/server/models/user/user-video-rate-interface.ts index e48869fd2..a726639b1 100644 --- a/server/models/user/user-video-rate-interface.ts +++ b/server/models/user/user-video-rate-interface.ts | |||
@@ -1,8 +1,10 @@ | |||
1 | import * as Sequelize from 'sequelize' | 1 | import * as Sequelize from 'sequelize' |
2 | 2 | ||
3 | import { VideoRateType } from '../../../shared/models/user-video-rate.model' | ||
4 | |||
3 | export namespace UserVideoRateMethods { | 5 | export namespace UserVideoRateMethods { |
4 | export type LoadCallback = (err: Error, userVideoRateInstance: UserVideoRateInstance) => void | 6 | export type LoadCallback = (err: Error, userVideoRateInstance: UserVideoRateInstance) => void |
5 | export type Load = (userId, videoId, transaction, callback) => void | 7 | export type Load = (userId: number, videoId: string, transaction: Sequelize.Transaction, callback: LoadCallback) => void |
6 | } | 8 | } |
7 | 9 | ||
8 | export interface UserVideoRateClass { | 10 | export interface UserVideoRateClass { |
@@ -10,7 +12,7 @@ export interface UserVideoRateClass { | |||
10 | } | 12 | } |
11 | 13 | ||
12 | export interface UserVideoRateAttributes { | 14 | export interface UserVideoRateAttributes { |
13 | type: string | 15 | type: VideoRateType |
14 | } | 16 | } |
15 | 17 | ||
16 | export interface UserVideoRateInstance extends UserVideoRateClass, UserVideoRateAttributes, Sequelize.Instance<UserVideoRateAttributes> { | 18 | export interface UserVideoRateInstance extends UserVideoRateClass, UserVideoRateAttributes, Sequelize.Instance<UserVideoRateAttributes> { |