diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-23 16:55:13 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:53 +0100 |
commit | 16b90975941b78d01d7202d441bf731a10048c16 (patch) | |
tree | 11709f51ec79785f32282dfbdd33277af483b2e6 /server/models/video/video-interface.ts | |
parent | d8553faa4939889fa7b7ef7329aa474a81cbbdb9 (diff) | |
download | PeerTube-16b90975941b78d01d7202d441bf731a10048c16.tar.gz PeerTube-16b90975941b78d01d7202d441bf731a10048c16.tar.zst PeerTube-16b90975941b78d01d7202d441bf731a10048c16.zip |
Fetch video likes/dislikes too
Diffstat (limited to 'server/models/video/video-interface.ts')
-rw-r--r-- | server/models/video/video-interface.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/models/video/video-interface.ts b/server/models/video/video-interface.ts index b97f163ab..89e528acf 100644 --- a/server/models/video/video-interface.ts +++ b/server/models/video/video-interface.ts | |||
@@ -8,6 +8,8 @@ import { TagAttributes, TagInstance } from './tag-interface' | |||
8 | import { VideoChannelInstance } from './video-channel-interface' | 8 | import { VideoChannelInstance } from './video-channel-interface' |
9 | import { VideoFileAttributes, VideoFileInstance } from './video-file-interface' | 9 | import { VideoFileAttributes, VideoFileInstance } from './video-file-interface' |
10 | import { VideoShareInstance } from './video-share-interface' | 10 | import { VideoShareInstance } from './video-share-interface' |
11 | import { UserVideoRate } from '../../../shared/models/videos/user-video-rate.model' | ||
12 | import { AccountVideoRateInstance } from '../account/account-video-rate-interface' | ||
11 | 13 | ||
12 | export namespace VideoMethods { | 14 | export namespace VideoMethods { |
13 | export type GetThumbnailName = (this: VideoInstance) => string | 15 | export type GetThumbnailName = (this: VideoInstance) => string |
@@ -123,6 +125,7 @@ export interface VideoAttributes { | |||
123 | Tags?: TagInstance[] | 125 | Tags?: TagInstance[] |
124 | VideoFiles?: VideoFileInstance[] | 126 | VideoFiles?: VideoFileInstance[] |
125 | VideoShares?: VideoShareInstance[] | 127 | VideoShares?: VideoShareInstance[] |
128 | AccountVideoRates?: AccountVideoRateInstance[] | ||
126 | } | 129 | } |
127 | 130 | ||
128 | export interface VideoInstance extends VideoClass, VideoAttributes, Sequelize.Instance<VideoAttributes> { | 131 | export interface VideoInstance extends VideoClass, VideoAttributes, Sequelize.Instance<VideoAttributes> { |