Chocobozzz/PeerTube

View on GitHub
server/core/lib/activitypub/videos/updater.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function update has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  async update (overrideTo?: string[]) {
    logger.debug(
      'Updating remote video "%s".', this.videoObject.uuid,
      { videoObject: this.videoObject, ...this.lTags() }
    )
Severity: Major
Found in server/core/lib/activitypub/videos/updater.ts - About 2 hrs to fix

    Function updateVideo has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      private updateVideo (channel: MChannelId, transaction?: Transaction, overrideTo?: string[]) {
        const to = overrideTo || this.videoObject.to
        const videoData = getVideoAttributesFromObject(channel, this.videoObject, to)
        this.video.name = videoData.name
        this.video.uuid = videoData.uuid
    Severity: Minor
    Found in server/core/lib/activitypub/videos/updater.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status