1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Try to speed up AP update transaction

This commit is contained in:
Chocobozzz 2021-06-08 17:29:45 +02:00
parent 75e12406e2
commit 28dfb44b14
No known key found for this signature in database
GPG key ID: 583A612D890159BE
8 changed files with 56 additions and 45 deletions

View file

@ -49,7 +49,7 @@ export abstract class APVideoAbstractBuilder {
})
}
protected async setPreview (video: MVideoFullLight, t: Transaction) {
protected async setPreview (video: MVideoFullLight, t?: Transaction) {
// Don't fetch the preview that could be big, create a placeholder instead
const previewIcon = getPreviewFromIcons(this.videoObject)
if (!previewIcon) return