aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-31 08:45:46 +0100
committerChocobozzz <me@florianbigard.com>2022-10-31 08:45:46 +0100
commitc08e4cfcf9556f4c769edb08f46725253ccc3bc7 (patch)
tree611b80b9c1eb191986aaae2b58eb30487f8e7212 /server
parent7246e7a9a318785f585ce8b163e2d8a4b7e5f09b (diff)
downloadPeerTube-c08e4cfcf9556f4c769edb08f46725253ccc3bc7.tar.gz
PeerTube-c08e4cfcf9556f4c769edb08f46725253ccc3bc7.tar.zst
PeerTube-c08e4cfcf9556f4c769edb08f46725253ccc3bc7.zip
Fix CLI build
Diffstat (limited to 'server')
-rw-r--r--server/tools/cli.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tools/cli.ts b/server/tools/cli.ts
index a15d73fb4..4607d052a 100644
--- a/server/tools/cli.ts
+++ b/server/tools/cli.ts
@@ -20,7 +20,7 @@ async function getAdminTokenOrDie (server: PeerTubeServer, username: string, pas
20 const token = await server.login.getAccessToken(username, password) 20 const token = await server.login.getAccessToken(username, password)
21 const me = await server.users.getMyInfo({ token }) 21 const me = await server.users.getMyInfo({ token })
22 22
23 if (me.role !== UserRole.ADMINISTRATOR) { 23 if (me.role.id !== UserRole.ADMINISTRATOR) {
24 console.error('You must be an administrator.') 24 console.error('You must be an administrator.')
25 process.exit(-1) 25 process.exit(-1)
26 } 26 }