aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-08 11:51:41 +0200
committerChocobozzz <me@florianbigard.com>2022-07-08 11:51:41 +0200
commit6504b3bfd9477ddd4d70c44a3ee1a9a0537a16c9 (patch)
tree23441f29ff576a50aa972bf5b414d4e4af2acce9 /server
parentc0e3d9ff9019fc3af9791bd20e1430724b2a043a (diff)
downloadPeerTube-6504b3bfd9477ddd4d70c44a3ee1a9a0537a16c9.tar.gz
PeerTube-6504b3bfd9477ddd4d70c44a3ee1a9a0537a16c9.tar.zst
PeerTube-6504b3bfd9477ddd4d70c44a3ee1a9a0537a16c9.zip
Fix videos stats
Diffstat (limited to 'server')
-rw-r--r--server/models/video/video.ts1
-rw-r--r--server/tests/api/live/live-save-replay.ts4
2 files changed, 2 insertions, 3 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 4f711b2fa..cdc1137be 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1385,7 +1385,6 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
1385 count: 0, 1385 count: 0,
1386 sort: '-publishedAt', 1386 sort: '-publishedAt',
1387 nsfw: null, 1387 nsfw: null,
1388 isLocal: true,
1389 displayOnlyForFollower: { 1388 displayOnlyForFollower: {
1390 actorId: serverActor.id, 1389 actorId: serverActor.id,
1391 orLocalVideos: true 1390 orLocalVideos: true
diff --git a/server/tests/api/live/live-save-replay.ts b/server/tests/api/live/live-save-replay.ts
index 7ddcb04ef..99ad3b2e1 100644
--- a/server/tests/api/live/live-save-replay.ts
+++ b/server/tests/api/live/live-save-replay.ts
@@ -316,7 +316,7 @@ describe('Save replay setting', function () {
316 }) 316 })
317 317
318 it('Should correctly terminate the stream on blacklist and blacklist the saved replay video', async function () { 318 it('Should correctly terminate the stream on blacklist and blacklist the saved replay video', async function () {
319 this.timeout(40000) 319 this.timeout(120000)
320 320
321 await publishLiveAndBlacklist({ permanent: false, replay: true }) 321 await publishLiveAndBlacklist({ permanent: false, replay: true })
322 322
@@ -412,7 +412,7 @@ describe('Save replay setting', function () {
412 }) 412 })
413 413
414 it('Should correctly terminate the stream on blacklist and blacklist the saved replay video', async function () { 414 it('Should correctly terminate the stream on blacklist and blacklist the saved replay video', async function () {
415 this.timeout(60000) 415 this.timeout(120000)
416 416
417 await servers[0].videos.remove({ id: lastReplayUUID }) 417 await servers[0].videos.remove({ id: lastReplayUUID })
418 const { liveDetails } = await publishLiveAndBlacklist({ permanent: true, replay: true }) 418 const { liveDetails } = await publishLiveAndBlacklist({ permanent: true, replay: true })