Fix CLI build
This commit is contained in:
parent
7246e7a9a3
commit
c08e4cfcf9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue