Fix CLI build

pull/5386/head
Chocobozzz 2022-10-31 08:45:46 +01:00
parent 7246e7a9a3
commit c08e4cfcf9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ async function getAdminTokenOrDie (server: PeerTubeServer, username: string, pas
const token = await server.login.getAccessToken(username, password) const token = await server.login.getAccessToken(username, password)
const me = await server.users.getMyInfo({ token }) 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.') console.error('You must be an administrator.')
process.exit(-1) process.exit(-1)
} }