|
@@ -20,10 +20,12 @@ export default class CreateChannelCommand extends ContentDirectoryCommandBase {
|
|
async getExistingChannelHandles(): Promise<string[]> {
|
|
async getExistingChannelHandles(): Promise<string[]> {
|
|
cli.action.start('Fetching chain data...')
|
|
cli.action.start('Fetching chain data...')
|
|
const result = await Promise.all(
|
|
const result = await Promise.all(
|
|
- (await this.entitiesByClassAndOwner('Channel')).map(async ([, channel]) => {
|
|
+ (await this.entitiesByClassAndOwner('Channel'))
|
|
- const { handle } = await this.parseToEntityJson<ChannelEntity>(channel)
|
|
+ .filter(([, c]) => c.supported_schemas.toArray().length)
|
|
- return handle
|
|
+ .map(async ([, channel]) => {
|
|
- })
|
|
+ const { handle } = await this.parseToEntityJson<ChannelEntity>(channel)
|
|
|
|
+ return handle
|
|
|
|
+ })
|
|
)
|
|
)
|
|
cli.action.stop()
|
|
cli.action.stop()
|
|
|
|
|