Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix CLI build

Chocobozzzc08e4cfcf955
diff --git a/server/tools/cli.ts b/server/tools/cli.ts
index a15d73fb40..4607d052a9 100644
--- a/server/tools/cli.ts
+++ b/server/tools/cli.ts
@@ -20,7 +20,7 @@ async function getAdminTokenOrDie (server: PeerTubeServer, username: string, pas
const token = await server.login.getAccessToken(username, password)
const me = await server.users.getMyInfo({ token })
- if (me.role !== UserRole.ADMINISTRATOR) {
+ if (me.role.id !== UserRole.ADMINISTRATOR) {
console.error('You must be an administrator.')
process.exit(-1)
}