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

Migrate eslint to v9

This commit is contained in:
Chocobozzz 2025-05-06 16:02:38 +02:00
parent bad8ea2c2e
commit 034e1bf328
No known key found for this signature in database
GPG key ID: 583A612D890159BE
106 changed files with 2130 additions and 1445 deletions

View file

@ -164,7 +164,7 @@ async function replaceVideoSourceResumable (req: express.Request, res: express.R
async function addVideoJobsAfterUpload (video: MVideoFullLight, videoFile: MVideoFile) {
const jobs: (CreateJobArgument & CreateJobOptions)[] = [
{
type: 'manage-video-torrent' as 'manage-video-torrent',
type: 'manage-video-torrent' as const,
payload: {
videoId: video.id,
videoFileId: videoFile.id,
@ -175,7 +175,7 @@ async function addVideoJobsAfterUpload (video: MVideoFullLight, videoFile: MVide
buildStoryboardJobIfNeeded({ video, federate: false }),
{
type: 'federate-video' as 'federate-video',
type: 'federate-video' as const,
payload: {
videoUUID: video.uuid,
isNewVideoForFederation: false
@ -189,7 +189,7 @@ async function addVideoJobsAfterUpload (video: MVideoFullLight, videoFile: MVide
if (video.state === VideoState.TO_TRANSCODE) {
jobs.push({
type: 'transcoding-job-builder' as 'transcoding-job-builder',
type: 'transcoding-job-builder' as const,
payload: {
videoUUID: video.uuid,
optimizeJob: {