mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
createThumbnail -> updateThumbnail
This commit is contained in:
parent
1333ab1f2d
commit
91f8f8db97
7 changed files with 34 additions and 34 deletions
|
@ -13,7 +13,7 @@ import { MVideoDetails, MVideoFullLight } from '@server/types/models'
|
|||
import { LiveVideoCreate, LiveVideoUpdate, VideoState } from '../../../../shared'
|
||||
import { logger } from '../../../helpers/logger'
|
||||
import { sequelizeTypescript } from '../../../initializers/database'
|
||||
import { createVideoMiniatureFromExisting } from '../../../lib/thumbnail'
|
||||
import { updateVideoMiniatureFromExisting } from '../../../lib/thumbnail'
|
||||
import { asyncMiddleware, asyncRetryTransactionMiddleware, authenticate } from '../../../middlewares'
|
||||
import { VideoModel } from '../../../models/video/video'
|
||||
import { HttpStatusCode } from '../../../../shared/core-utils/miscs/http-error-codes'
|
||||
|
@ -100,7 +100,7 @@ async function addLiveVideo (req: express.Request, res: express.Response) {
|
|||
video,
|
||||
files: req.files,
|
||||
fallback: type => {
|
||||
return createVideoMiniatureFromExisting({
|
||||
return updateVideoMiniatureFromExisting({
|
||||
inputPath: ASSETS_PATH.DEFAULT_LIVE_BACKGROUND,
|
||||
video,
|
||||
type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue