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/videos-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/videos-command.ts')
-rw-r--r-- | shared/server-commands/videos/videos-command.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/shared/server-commands/videos/videos-command.ts b/shared/server-commands/videos/videos-command.ts index c0b36d95b..168391523 100644 --- a/shared/server-commands/videos/videos-command.ts +++ b/shared/server-commands/videos/videos-command.ts | |||
@@ -3,9 +3,8 @@ | |||
3 | import { expect } from 'chai' | 3 | import { expect } from 'chai' |
4 | import { createReadStream, stat } from 'fs-extra' | 4 | import { createReadStream, stat } from 'fs-extra' |
5 | import got, { Response as GotResponse } from 'got' | 5 | import got, { Response as GotResponse } from 'got' |
6 | import { omit } from 'lodash' | ||
7 | import validator from 'validator' | 6 | import validator from 'validator' |
8 | import { buildAbsoluteFixturePath, pick, wait } from '@shared/core-utils' | 7 | import { buildAbsoluteFixturePath, omit, pick, wait } from '@shared/core-utils' |
9 | import { buildUUID } from '@shared/extra-utils' | 8 | import { buildUUID } from '@shared/extra-utils' |
10 | import { | 9 | import { |
11 | HttpStatusCode, | 10 | HttpStatusCode, |
@@ -484,7 +483,7 @@ export class VideosCommand extends AbstractCommand { | |||
484 | }, | 483 | }, |
485 | 484 | ||
486 | // Fixture will be sent later | 485 | // Fixture will be sent later |
487 | attaches: this.buildUploadAttaches(omit(options.attributes, 'fixture')), | 486 | attaches: this.buildUploadAttaches(omit(options.attributes, [ 'fixture' ])), |
488 | implicitToken: true, | 487 | implicitToken: true, |
489 | 488 | ||
490 | defaultExpectedStatus: null | 489 | defaultExpectedStatus: null |