mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Reimplement a typed omit function
This commit is contained in:
parent
a85d530384
commit
bbd5aa7ead
17 changed files with 67 additions and 78 deletions
|
@ -1,5 +1,4 @@
|
|||
import { omit } from 'lodash'
|
||||
import { pick } from '@shared/core-utils'
|
||||
import { omit, pick } from '@shared/core-utils'
|
||||
import {
|
||||
HttpStatusCode,
|
||||
MyUser,
|
||||
|
@ -298,7 +297,7 @@ export class UsersCommand extends AbstractCommand {
|
|||
updateMe (options: OverrideCommandOptions & UserUpdateMe) {
|
||||
const path = '/api/v1/users/me'
|
||||
|
||||
const toSend: UserUpdateMe = omit(options, 'url', 'accessToken')
|
||||
const toSend: UserUpdateMe = omit(options, [ 'expectedStatus', 'token' ])
|
||||
|
||||
return this.putBodyRequest({
|
||||
...options,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue