mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Upgrade server dependencies
This commit is contained in:
parent
95d5969445
commit
1f7ab4f310
6 changed files with 733 additions and 456 deletions
|
@ -2,6 +2,7 @@ import * as Bluebird from 'bluebird'
|
|||
import { ActivityUpdate } from '../../../../shared/models/activitypub'
|
||||
import { ActivityPubActor } from '../../../../shared/models/activitypub/activitypub-actor'
|
||||
import { VideoTorrentObject } from '../../../../shared/models/activitypub/objects'
|
||||
import { VideoFile } from '../../../../shared/models/videos'
|
||||
import { retryTransactionWrapper } from '../../../helpers/database-utils'
|
||||
import { logger } from '../../../helpers/logger'
|
||||
import { resetSequelizeInstance } from '../../../helpers/utils'
|
||||
|
@ -90,7 +91,7 @@ async function updateRemoteVideo (actor: ActorModel, activity: ActivityUpdate) {
|
|||
await Promise.all(videoFileDestroyTasks)
|
||||
|
||||
const videoFileAttributes = videoFileActivityUrlToDBAttributes(videoInstance, videoAttributesToUpdate)
|
||||
const tasks: Bluebird<any>[] = videoFileAttributes.map(f => VideoFileModel.create(f))
|
||||
const tasks = videoFileAttributes.map(f => VideoFileModel.create(f))
|
||||
await Promise.all(tasks)
|
||||
|
||||
const tags = videoAttributesToUpdate.tag.map(t => t.name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue