X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fvideo.ts;h=8f561116be70622f49eb898c1e6af7968d16dfd9;hb=1c5e49e75284100b7b1fc8b4e73c8ba53fe22e89;hp=5af907533a9a1463c052baa6774b1467c0f814aa;hpb=a1eda903a497857017495f37a1fd3593ba7ab23c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 5af907533..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: {