From 0a6658fdcbd779ada8f3758048c326e997902d5a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Jul 2017 16:01:56 +0200 Subject: Use global uuid instead of remoteId for videos --- server/models/user/user-video-rate-interface.ts | 2 +- server/models/user/user-video-rate.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'server/models/user') diff --git a/server/models/user/user-video-rate-interface.ts b/server/models/user/user-video-rate-interface.ts index f501f08b7..4e6efc01a 100644 --- a/server/models/user/user-video-rate-interface.ts +++ b/server/models/user/user-video-rate-interface.ts @@ -4,7 +4,7 @@ import * as Promise from 'bluebird' import { VideoRateType } from '../../../shared/models/videos/video-rate.type' export namespace UserVideoRateMethods { - export type Load = (userId: number, videoId: string, transaction: Sequelize.Transaction) => Promise + export type Load = (userId: number, videoId: number, transaction: Sequelize.Transaction) => Promise } export interface UserVideoRateClass { diff --git a/server/models/user/user-video-rate.ts b/server/models/user/user-video-rate.ts index 37d0222cf..c14598650 100644 --- a/server/models/user/user-video-rate.ts +++ b/server/models/user/user-video-rate.ts @@ -65,7 +65,7 @@ function associate (models) { }) } -load = function (userId: number, videoId: string, transaction: Sequelize.Transaction) { +load = function (userId: number, videoId: number, transaction: Sequelize.Transaction) { const options: Sequelize.FindOptions = { where: { userId, -- cgit v1.2.3