mirror of https://github.com/Chocobozzz/PeerTube
Fix tests
parent
0564fc09d3
commit
93544419d2
|
@ -32,6 +32,7 @@ import { CONSTRAINTS_FIELDS, MIMETYPES } from '../../initializers/constants'
|
||||||
import { ActorModel } from '../activitypub/actor'
|
import { ActorModel } from '../activitypub/actor'
|
||||||
import { ServerModel } from '../server/server'
|
import { ServerModel } from '../server/server'
|
||||||
import { getSort, getVideoSort, parseAggregateResult, throwIfNotValid } from '../utils'
|
import { getSort, getVideoSort, parseAggregateResult, throwIfNotValid } from '../utils'
|
||||||
|
import { ScheduleVideoUpdateModel } from '../video/schedule-video-update'
|
||||||
import { VideoModel } from '../video/video'
|
import { VideoModel } from '../video/video'
|
||||||
import { VideoChannelModel } from '../video/video-channel'
|
import { VideoChannelModel } from '../video/video-channel'
|
||||||
import { VideoFileModel } from '../video/video-file'
|
import { VideoFileModel } from '../video/video-file'
|
||||||
|
@ -374,7 +375,13 @@ export class VideoRedundancyModel extends Model {
|
||||||
...this.buildVideoIdsForDuplication(peertubeActor)
|
...this.buildVideoIdsForDuplication(peertubeActor)
|
||||||
},
|
},
|
||||||
include: [
|
include: [
|
||||||
VideoRedundancyModel.buildServerRedundancyInclude()
|
VideoRedundancyModel.buildServerRedundancyInclude(),
|
||||||
|
|
||||||
|
// Required by publishedAt sort
|
||||||
|
{
|
||||||
|
model: ScheduleVideoUpdateModel.unscoped(),
|
||||||
|
required: false
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue