X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Fmodels%2Fuser%2Fuser-video-rate-interface.ts;h=a726639b1e7578b347cb13c68bcd2db6cc1f4d90;hb=ee9e7b61f59a427208386738057c8eff48fba599;hp=e48869fd22a676d6d6a928579fb6b44f08cc3ffd;hpb=70c065d64c330196d371941d9294a55da6e3aa37;p=github%2FChocobozzz%2FPeerTube.git 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 @@ import * as Sequelize from 'sequelize' +import { VideoRateType } from '../../../shared/models/user-video-rate.model' + export namespace UserVideoRateMethods { export type LoadCallback = (err: Error, userVideoRateInstance: UserVideoRateInstance) => void - export type Load = (userId, videoId, transaction, callback) => void + export type Load = (userId: number, videoId: string, transaction: Sequelize.Transaction, callback: LoadCallback) => void } export interface UserVideoRateClass { @@ -10,7 +12,7 @@ export interface UserVideoRateClass { } export interface UserVideoRateAttributes { - type: string + type: VideoRateType } export interface UserVideoRateInstance extends UserVideoRateClass, UserVideoRateAttributes, Sequelize.Instance {