Use typed pick

pull/5898/head
Chocobozzz 2023-07-26 10:49:32 +02:00
parent 69e3f2049f
commit 17522af1e0
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,7 @@
import { remove } from 'fs-extra'
import { pick } from 'lodash'
import { logger } from 'packages/peertube-runner/shared'
import { join } from 'path'
import { pick } from '@shared/core-utils'
import { buildUUID } from '@shared/extra-utils'
import {
RunnerJobStudioTranscodingPayload,

View File

@ -1,8 +1,8 @@
import { pick } from 'lodash'
import { logger } from '@server/helpers/logger'
import { VideoJobInfoModel } from '@server/models/video/video-job-info'
import { MVideo } from '@server/types/models'
import { MRunnerJob } from '@server/types/models/runners'
import { pick } from '@shared/core-utils'
import { buildUUID } from '@shared/extra-utils'
import { getVideoStreamDuration } from '@shared/ffmpeg'
import {

View File

@ -1,8 +1,8 @@
import { pick } from 'lodash'
import { logger } from '@server/helpers/logger'
import { VideoJobInfoModel } from '@server/models/video/video-job-info'
import { MVideo } from '@server/types/models'
import { MRunnerJob } from '@server/types/models/runners'
import { pick } from '@shared/core-utils'
import { buildUUID } from '@shared/extra-utils'
import {
RunnerJobUpdatePayload,

View File

@ -1,5 +1,4 @@
import { isArray } from 'lodash'
import { isArray } from '@server/helpers/custom-validators/misc'
import { generateMagnetUri } from '@server/helpers/webtorrent'
import { getActivityStreamDuration } from '@server/lib/activitypub/activity'
import { getLocalVideoFileMetadataUrl } from '@server/lib/video-urls'