mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Fix tests
This commit is contained in:
parent
718107d861
commit
52a4813fbb
3 changed files with 4 additions and 2 deletions
|
@ -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',
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue