From c08e4cfcf9556f4c769edb08f46725253ccc3bc7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 31 Oct 2022 08:45:46 +0100 Subject: [PATCH] Fix CLI build --- server/tools/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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) }