X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Faccount%2Faccount-video-rate.ts;h=c99e32012b55e14854a94f856efe0ec35aaf14bd;hb=0b74c74abe5a44e9f564ab6adb5177ab17d28e91;hp=9c19ec7488d46bc269fe281f101a24a94197c456;hpb=9a4a9b6c4e193739d542f73ee85cd305067f2aea;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/account/account-video-rate.ts b/server/models/account/account-video-rate.ts index 9c19ec748..c99e32012 100644 --- a/server/models/account/account-video-rate.ts +++ b/server/models/account/account-video-rate.ts @@ -17,6 +17,15 @@ import { ActorModel } from '../activitypub/actor' { fields: [ 'videoId', 'accountId' ], unique: true + }, + { + fields: [ 'videoId' ] + }, + { + fields: [ 'accountId' ] + }, + { + fields: [ 'videoId', 'type' ] } ] })