Fix videos stats

This commit is contained in:
Chocobozzz 2022-07-08 11:51:41 +02:00
parent c0e3d9ff90
commit 6504b3bfd9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 2 additions and 3 deletions

View File

@ -1385,7 +1385,6 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
count: 0, count: 0,
sort: '-publishedAt', sort: '-publishedAt',
nsfw: null, nsfw: null,
isLocal: true,
displayOnlyForFollower: { displayOnlyForFollower: {
actorId: serverActor.id, actorId: serverActor.id,
orLocalVideos: true orLocalVideos: true

View File

@ -316,7 +316,7 @@ describe('Save replay setting', function () {
}) })
it('Should correctly terminate the stream on blacklist and blacklist the saved replay video', async function () { it('Should correctly terminate the stream on blacklist and blacklist the saved replay video', async function () {
this.timeout(40000) this.timeout(120000)
await publishLiveAndBlacklist({ permanent: false, replay: true }) await publishLiveAndBlacklist({ permanent: false, replay: true })
@ -412,7 +412,7 @@ describe('Save replay setting', function () {
}) })
it('Should correctly terminate the stream on blacklist and blacklist the saved replay video', async function () { it('Should correctly terminate the stream on blacklist and blacklist the saved replay video', async function () {
this.timeout(60000) this.timeout(120000)
await servers[0].videos.remove({ id: lastReplayUUID }) await servers[0].videos.remove({ id: lastReplayUUID })
const { liveDetails } = await publishLiveAndBlacklist({ permanent: true, replay: true }) const { liveDetails } = await publishLiveAndBlacklist({ permanent: true, replay: true })