aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-07 17:09:49 +0200
committerChocobozzz <me@florianbigard.com>2021-04-08 08:10:13 +0200
commit93544419d21647853032786ce0c86e0744fb0359 (patch)
tree708c3e86726f980fb7a8b3df5e3901713fab38dc /server
parent0564fc09d3ea46d78cc4e454f52aefeca68b73e2 (diff)
downloadPeerTube-93544419d21647853032786ce0c86e0744fb0359.tar.gz
PeerTube-93544419d21647853032786ce0c86e0744fb0359.tar.zst
PeerTube-93544419d21647853032786ce0c86e0744fb0359.zip
Fix tests
Diffstat (limited to 'server')
-rw-r--r--server/models/redundancy/video-redundancy.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/server/models/redundancy/video-redundancy.ts b/server/models/redundancy/video-redundancy.ts
index 53293df37..53ebadeaf 100644
--- a/server/models/redundancy/video-redundancy.ts
+++ b/server/models/redundancy/video-redundancy.ts
@@ -32,6 +32,7 @@ import { CONSTRAINTS_FIELDS, MIMETYPES } from '../../initializers/constants'
32import { ActorModel } from '../activitypub/actor' 32import { ActorModel } from '../activitypub/actor'
33import { ServerModel } from '../server/server' 33import { ServerModel } from '../server/server'
34import { getSort, getVideoSort, parseAggregateResult, throwIfNotValid } from '../utils' 34import { getSort, getVideoSort, parseAggregateResult, throwIfNotValid } from '../utils'
35import { ScheduleVideoUpdateModel } from '../video/schedule-video-update'
35import { VideoModel } from '../video/video' 36import { VideoModel } from '../video/video'
36import { VideoChannelModel } from '../video/video-channel' 37import { VideoChannelModel } from '../video/video-channel'
37import { VideoFileModel } from '../video/video-file' 38import { VideoFileModel } from '../video/video-file'
@@ -374,7 +375,13 @@ export class VideoRedundancyModel extends Model {
374 ...this.buildVideoIdsForDuplication(peertubeActor) 375 ...this.buildVideoIdsForDuplication(peertubeActor)
375 }, 376 },
376 include: [ 377 include: [
377 VideoRedundancyModel.buildServerRedundancyInclude() 378 VideoRedundancyModel.buildServerRedundancyInclude(),
379
380 // Required by publishedAt sort
381 {
382 model: ScheduleVideoUpdateModel.unscoped(),
383 required: false
384 }
378 ] 385 ]
379 } 386 }
380 387