mirror of https://github.com/Chocobozzz/PeerTube
Add isLive DB index
parent
82813e9739
commit
a290fbf821
|
@ -430,6 +430,12 @@ export type ForAPIOptions = {
|
|||
nsfw: true
|
||||
}
|
||||
},
|
||||
{
|
||||
fields: [ 'isLive' ], // Most of the videos are VOD
|
||||
where: {
|
||||
isLive: true
|
||||
}
|
||||
},
|
||||
{
|
||||
fields: [ 'remote' ], // Only index local videos
|
||||
where: {
|
||||
|
|
Loading…
Reference in New Issue