1
0
Fork 0

Fix CLI build

This commit is contained in:
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

View file

@ -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)
}