Explorar el Código

CLI: promptForChannel renamings

iorveth hace 4 años
padre
commit
988403a095
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      cli/src/base/ContentDirectoryCommandBase.ts

+ 4 - 4
cli/src/base/ContentDirectoryCommandBase.ts

@@ -61,16 +61,16 @@ export default abstract class ContentDirectoryCommandBase extends RolesCommandBa
   }
 
   async promptForChannel(message = 'Select a channel'): Promise<Channel> {
-    const classes = await this.getApi().availableChannels()
-    const choices = classes.map(([id, c]) => ({ id: id.toString(), value: c }))
+    const channels = await this.getApi().availableChannels()
+    const choices = channels.map(([id, c]) => ({ id: id.toString(), value: c }))
     if (!choices.length) {
       this.warn('No channels exist to choose from!')
       this.exit(ExitCodes.InvalidInput)
     }
 
-    const selectedClass = await this.simplePrompt({ message, type: 'list', choices })
+    const selectedChannel = await this.simplePrompt({ message, type: 'list', choices })
 
-    return selectedClass
+    return selectedChannel
   }
 
   private async curatorGroupChoices(ids?: CuratorGroupId[]) {