diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-17 15:25:58 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-17 15:25:58 +0200 |
commit | bbd5aa7ead5f1554a0872963f957effc26d8c630 (patch) | |
tree | a32cad420cfabe4eab5df4e3f104fa34f734fa7d /shared/server-commands/videos/live-command.ts | |
parent | a85d530384761a0af833caac9b38b9834517c9fa (diff) | |
download | PeerTube-bbd5aa7ead5f1554a0872963f957effc26d8c630.tar.gz PeerTube-bbd5aa7ead5f1554a0872963f957effc26d8c630.tar.zst PeerTube-bbd5aa7ead5f1554a0872963f957effc26d8c630.zip |
Reimplement a typed omit function
Diffstat (limited to 'shared/server-commands/videos/live-command.ts')
-rw-r--r-- | shared/server-commands/videos/live-command.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/shared/server-commands/videos/live-command.ts b/shared/server-commands/videos/live-command.ts index 3df47ed4d..d804fd883 100644 --- a/shared/server-commands/videos/live-command.ts +++ b/shared/server-commands/videos/live-command.ts | |||
@@ -1,9 +1,8 @@ | |||
1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ | 1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ |
2 | 2 | ||
3 | import { readdir } from 'fs-extra' | 3 | import { readdir } from 'fs-extra' |
4 | import { omit } from 'lodash' | ||
5 | import { join } from 'path' | 4 | import { join } from 'path' |
6 | import { wait } from '@shared/core-utils' | 5 | import { omit, wait } from '@shared/core-utils' |
7 | import { | 6 | import { |
8 | HttpStatusCode, | 7 | HttpStatusCode, |
9 | LiveVideo, | 8 | LiveVideo, |
@@ -103,7 +102,7 @@ export class LiveCommand extends AbstractCommand { | |||
103 | 102 | ||
104 | path, | 103 | path, |
105 | attaches, | 104 | attaches, |
106 | fields: omit(fields, 'thumbnailfile', 'previewfile'), | 105 | fields: omit(fields, [ 'thumbnailfile', 'previewfile' ]), |
107 | implicitToken: true, | 106 | implicitToken: true, |
108 | defaultExpectedStatus: HttpStatusCode.OK_200 | 107 | defaultExpectedStatus: HttpStatusCode.OK_200 |
109 | })) | 108 | })) |