1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Fix tests

This commit is contained in:
Chocobozzz 2025-05-06 11:26:33 +02:00
parent 718107d861
commit 52a4813fbb
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 4 additions and 2 deletions

View file

@ -183,7 +183,8 @@ export class ObjectStorageCommand {
streaming_playlists: {
bucket_name: this.DEFAULT_SCALEWAY_BUCKET,
prefix: `test:server-${serverNumber}-streaming-playlists:`
prefix: `test:server-${serverNumber}-streaming-playlists:`,
store_live_streams: true
},
web_videos: {

View file

@ -251,6 +251,7 @@ export class VideoCommentModel extends SequelizeModel<VideoCommentModel> {
await retryTransactionWrapper(() => {
return sequelizeTypescript.transaction(async transaction => {
const video = await VideoModel.load(videoId, transaction)
if (!video) return
video.comments = await new VideoCommentListQueryBuilder(VideoCommentModel.sequelize, {
selectType: 'comment-only',

View file

@ -846,7 +846,7 @@ export class VideoModel extends SequelizeModel<VideoModel> {
static async removeFiles (instance: VideoModel, options) {
const tasks: Promise<any>[] = []
logger.info('Removing files of video %s.', instance.url, { toto: new Error().stack })
logger.info('Removing files of video ' + instance.url)
if (instance.isOwned()) {
if (!Array.isArray(instance.VideoFiles)) {