X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fvideo-share.ts;h=50525b4c25977b6ac2223a4d49f4ded28535506a;hb=d5d9b6d7bfb7e9426b6462f7fdf285df39eea820;hp=9019b401abeda0d0439cebb63673c91f7effd370;hpb=f6e0de3f48993b2c0ef9bd2c24d2d7443acc6ace;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video/video-share.ts b/server/models/video/video-share.ts index 9019b401a..50525b4c2 100644 --- a/server/models/video/video-share.ts +++ b/server/models/video/video-share.ts @@ -90,7 +90,7 @@ export class VideoShareModel extends Model { }) Video: VideoModel - static load (actorId: number, videoId: number, t?: Transaction): Bluebird { + static load (actorId: number | string, videoId: number | string, t?: Transaction): Bluebird { return VideoShareModel.scope(ScopeNames.WITH_ACTOR).findOne({ where: { actorId,