diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-21 14:31:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-21 15:23:04 +0200 |
commit | b5fecbf44192144d1ca27c23a0b53922de288c10 (patch) | |
tree | 03e4f1048273e6de60b8eb642fb52b2a4c68e60c /server/models/redundancy | |
parent | f92e7f76d43cbad173be87f47105b9a02032318a (diff) | |
download | PeerTube-b5fecbf44192144d1ca27c23a0b53922de288c10.tar.gz PeerTube-b5fecbf44192144d1ca27c23a0b53922de288c10.tar.zst PeerTube-b5fecbf44192144d1ca27c23a0b53922de288c10.zip |
Type toActivityPubObject functions
Diffstat (limited to 'server/models/redundancy')
-rw-r--r-- | server/models/redundancy/video-redundancy.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/redundancy/video-redundancy.ts b/server/models/redundancy/video-redundancy.ts index 1c216b300..61d9a5612 100644 --- a/server/models/redundancy/video-redundancy.ts +++ b/server/models/redundancy/video-redundancy.ts | |||
@@ -30,7 +30,7 @@ import * as Bluebird from 'bluebird' | |||
30 | import { col, FindOptions, fn, literal, Op, Transaction } from 'sequelize' | 30 | import { col, FindOptions, fn, literal, Op, Transaction } from 'sequelize' |
31 | import { VideoStreamingPlaylistModel } from '../video/video-streaming-playlist' | 31 | import { VideoStreamingPlaylistModel } from '../video/video-streaming-playlist' |
32 | import { CONFIG } from '../../initializers/config' | 32 | import { CONFIG } from '../../initializers/config' |
33 | import { MVideoRedundancy, MVideoRedundancyVideo } from '@server/typings/models' | 33 | import { MVideoRedundancy, MVideoRedundancyAP, MVideoRedundancyVideo } from '@server/typings/models' |
34 | 34 | ||
35 | export enum ScopeNames { | 35 | export enum ScopeNames { |
36 | WITH_VIDEO = 'WITH_VIDEO' | 36 | WITH_VIDEO = 'WITH_VIDEO' |
@@ -488,7 +488,7 @@ export class VideoRedundancyModel extends Model<VideoRedundancyModel> { | |||
488 | return !!this.strategy | 488 | return !!this.strategy |
489 | } | 489 | } |
490 | 490 | ||
491 | toActivityPubObject (): CacheFileObject { | 491 | toActivityPubObject (this: MVideoRedundancyAP): CacheFileObject { |
492 | if (this.VideoStreamingPlaylist) { | 492 | if (this.VideoStreamingPlaylist) { |
493 | return { | 493 | return { |
494 | id: this.url, | 494 | id: this.url, |