diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-13 14:23:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0 (patch) | |
tree | 7a166515e4d57a06eb3c08be569f106ed049988b /shared/extra-utils/videos/videos.ts | |
parent | d0a0fa429d4651710ed951a3c11af0219e408964 (diff) | |
download | PeerTube-7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0.tar.gz PeerTube-7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0.tar.zst PeerTube-7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0.zip |
Introduce user command
Diffstat (limited to 'shared/extra-utils/videos/videos.ts')
-rw-r--r-- | shared/extra-utils/videos/videos.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts index 5dd71ce8b..5e20f8010 100644 --- a/shared/extra-utils/videos/videos.ts +++ b/shared/extra-utils/videos/videos.ts | |||
@@ -17,7 +17,7 @@ import { buildAbsoluteFixturePath, dateIsValid, testImage, wait, webtorrentAdd } | |||
17 | import { makeGetRequest, makePutBodyRequest, makeRawRequest, makeUploadRequest } from '../requests/requests' | 17 | import { makeGetRequest, makePutBodyRequest, makeRawRequest, makeUploadRequest } from '../requests/requests' |
18 | import { waitJobs } from '../server/jobs' | 18 | import { waitJobs } from '../server/jobs' |
19 | import { ServerInfo } from '../server/servers' | 19 | import { ServerInfo } from '../server/servers' |
20 | import { getMyUserInformation } from '../users/users' | 20 | import { xxxgetMyUserInformation } from '../users' |
21 | 21 | ||
22 | loadLanguages() | 22 | loadLanguages() |
23 | 23 | ||
@@ -339,7 +339,7 @@ async function uploadVideo ( | |||
339 | let defaultChannelId = '1' | 339 | let defaultChannelId = '1' |
340 | 340 | ||
341 | try { | 341 | try { |
342 | const res = await getMyUserInformation(url, accessToken) | 342 | const res = await xxxgetMyUserInformation(url, accessToken) |
343 | defaultChannelId = res.body.videoChannels[0].id | 343 | defaultChannelId = res.body.videoChannels[0].id |
344 | } catch (e) { /* empty */ } | 344 | } catch (e) { /* empty */ } |
345 | 345 | ||