aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/users/users-command.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-16 09:04:35 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commit89d241a79c262b9775c233b73cff080043ebb5e6 (patch)
treecb3b6cb431d25d891ef4e02f66c61d252d17048f /shared/extra-utils/users/users-command.ts
parentd23dd9fbfc4d26026352c10f81d2795ceaf2908a (diff)
downloadPeerTube-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.ts4
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 & {