X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fvideo.ts;h=8f561116be70622f49eb898c1e6af7968d16dfd9;hb=1c5e49e75284100b7b1fc8b4e73c8ba53fe22e89;hp=d4a25818774e7e84a8febfd1de71b1681949d06f;hpb=5ec3cbdf22fc88ebe57f370fc0bc0e3df7453458;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video/video.ts b/server/models/video/video.ts index d4a258187..8f561116b 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -1004,9 +1004,9 @@ export class VideoModel extends Model>> { }) } - static async listPublishedLiveIds () { + static async listPublishedLiveUUIDs () { const options = { - attributes: [ 'id' ], + attributes: [ 'uuid' ], where: { isLive: true, remote: false, @@ -1016,7 +1016,7 @@ export class VideoModel extends Model>> { const result = await VideoModel.findAll(options) - return result.map(v => v.id) + return result.map(v => v.uuid) } static listUserVideosForApi (options: { @@ -1920,7 +1920,7 @@ export class VideoModel extends Model>> { } getWatchStaticPath () { - return '/videos/watch/' + this.uuid + return '/w/' + this.uuid } getEmbedStaticPath () {