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

Reimplement a typed omit function

This commit is contained in:
Chocobozzz 2022-08-17 15:25:58 +02:00
parent a85d530384
commit bbd5aa7ead
No known key found for this signature in database
GPG key ID: 583A612D890159BE
17 changed files with 67 additions and 78 deletions

View file

@ -1,9 +1,8 @@
/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
import { readdir } from 'fs-extra'
import { omit } from 'lodash'
import { join } from 'path'
import { wait } from '@shared/core-utils'
import { omit, wait } from '@shared/core-utils'
import {
HttpStatusCode,
LiveVideo,
@ -103,7 +102,7 @@ export class LiveCommand extends AbstractCommand {
path,
attaches,
fields: omit(fields, 'thumbnailfile', 'previewfile'),
fields: omit(fields, [ 'thumbnailfile', 'previewfile' ]),
implicitToken: true,
defaultExpectedStatus: HttpStatusCode.OK_200
}))