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/account/account-video-rate-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/account/account-video-rate-interface.ts')
-rw-r--r-- | server/models/account/account-video-rate-interface.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/models/account/account-video-rate-interface.ts b/server/models/account/account-video-rate-interface.ts index 316056246..1f395bc45 100644 --- a/server/models/account/account-video-rate-interface.ts +++ b/server/models/account/account-video-rate-interface.ts | |||
@@ -2,6 +2,7 @@ import * as Sequelize from 'sequelize' | |||
2 | import * as Promise from 'bluebird' | 2 | import * as Promise from 'bluebird' |
3 | 3 | ||
4 | import { VideoRateType } from '../../../shared/models/videos/video-rate.type' | 4 | import { VideoRateType } from '../../../shared/models/videos/video-rate.type' |
5 | import { AccountInstance } from './account-interface' | ||
5 | 6 | ||
6 | export namespace AccountVideoRateMethods { | 7 | export namespace AccountVideoRateMethods { |
7 | export type Load = (accountId: number, videoId: number, transaction: Sequelize.Transaction) => Promise<AccountVideoRateInstance> | 8 | export type Load = (accountId: number, videoId: number, transaction: Sequelize.Transaction) => Promise<AccountVideoRateInstance> |
@@ -15,6 +16,8 @@ export interface AccountVideoRateAttributes { | |||
15 | type: VideoRateType | 16 | type: VideoRateType |
16 | accountId: number | 17 | accountId: number |
17 | videoId: number | 18 | videoId: number |
19 | |||
20 | Account?: AccountInstance | ||
18 | } | 21 | } |
19 | 22 | ||
20 | export interface AccountVideoRateInstance | 23 | export interface AccountVideoRateInstance |