diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:04:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 89d241a79c262b9775c233b73cff080043ebb5e6 (patch) | |
tree | cb3b6cb431d25d891ef4e02f66c61d252d17048f /shared/extra-utils/users/users-command.ts | |
parent | d23dd9fbfc4d26026352c10f81d2795ceaf2908a (diff) | |
download | PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.gz PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.zst PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.zip |
Shorter server command names
Diffstat (limited to 'shared/extra-utils/users/users-command.ts')
-rw-r--r-- | shared/extra-utils/users/users-command.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/extra-utils/users/users-command.ts b/shared/extra-utils/users/users-command.ts index 202528b8d..59dc6d018 100644 --- a/shared/extra-utils/users/users-command.ts +++ b/shared/extra-utils/users/users-command.ts | |||
@@ -194,7 +194,7 @@ export class UsersCommand extends AbstractCommand { | |||
194 | const password = 'password' | 194 | const password = 'password' |
195 | const user = await this.create({ username, password }) | 195 | const user = await this.create({ username, password }) |
196 | 196 | ||
197 | const token = await this.server.loginCommand.getAccessToken({ username, password }) | 197 | const token = await this.server.login.getAccessToken({ username, password }) |
198 | 198 | ||
199 | const me = await this.getMyInfo({ token }) | 199 | const me = await this.getMyInfo({ token }) |
200 | 200 | ||
@@ -209,7 +209,7 @@ export class UsersCommand extends AbstractCommand { | |||
209 | const password = 'password' | 209 | const password = 'password' |
210 | await this.create({ username, password }) | 210 | await this.create({ username, password }) |
211 | 211 | ||
212 | return this.server.loginCommand.getAccessToken({ username, password }) | 212 | return this.server.login.getAccessToken({ username, password }) |
213 | } | 213 | } |
214 | 214 | ||
215 | register (options: OverrideCommandOptions & { | 215 | register (options: OverrideCommandOptions & { |