diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-07 17:09:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-04-08 08:10:13 +0200 |
commit | 93544419d21647853032786ce0c86e0744fb0359 (patch) | |
tree | 708c3e86726f980fb7a8b3df5e3901713fab38dc /server | |
parent | 0564fc09d3ea46d78cc4e454f52aefeca68b73e2 (diff) | |
download | PeerTube-93544419d21647853032786ce0c86e0744fb0359.tar.gz PeerTube-93544419d21647853032786ce0c86e0744fb0359.tar.zst PeerTube-93544419d21647853032786ce0c86e0744fb0359.zip |
Fix tests
Diffstat (limited to 'server')
-rw-r--r-- | server/models/redundancy/video-redundancy.ts | 9 |
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' | |||
32 | import { ActorModel } from '../activitypub/actor' | 32 | import { ActorModel } from '../activitypub/actor' |
33 | import { ServerModel } from '../server/server' | 33 | import { ServerModel } from '../server/server' |
34 | import { getSort, getVideoSort, parseAggregateResult, throwIfNotValid } from '../utils' | 34 | import { getSort, getVideoSort, parseAggregateResult, throwIfNotValid } from '../utils' |
35 | import { ScheduleVideoUpdateModel } from '../video/schedule-video-update' | ||
35 | import { VideoModel } from '../video/video' | 36 | import { VideoModel } from '../video/video' |
36 | import { VideoChannelModel } from '../video/video-channel' | 37 | import { VideoChannelModel } from '../video/video-channel' |
37 | import { VideoFileModel } from '../video/video-file' | 38 | import { 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 | ||