소스 검색

CLI censorship: upgrade context prompting

iorveth 4 년 전
부모
커밋
10ecab1598
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      cli/src/commands/content/updateChannelCensorshipStatus.ts
  2. 2 2
      cli/src/commands/content/updateVideoCensorshipStatus.ts

+ 2 - 2
cli/src/commands/content/updateChannelCensorshipStatus.ts

@@ -5,7 +5,7 @@ import ExitCodes from '../../ExitCodes'
 export default class UpdateChannelCensorshipStatusCommand extends ContentDirectoryCommandBase {
   static description = 'Update Channel censorship status (Active/Inactive).'
   static flags = {
-    context: ContentDirectoryCommandBase.contextFlag,
+    context: ContentDirectoryCommandBase.ownerContextFlag,
   }
 
   static args = [
@@ -32,7 +32,7 @@ export default class UpdateChannelCensorshipStatusCommand extends ContentDirecto
     let { id, status, rationale } = this.parse(UpdateChannelCensorshipStatusCommand).args
 
     if (!context) {
-      context = await this.promptForContext()
+      context = await this.promptForOwnerContext()
     }
 
     const currentAccount = await this.getRequiredSelectedAccount()

+ 2 - 2
cli/src/commands/content/updateVideoCensorshipStatus.ts

@@ -5,7 +5,7 @@ import ExitCodes from '../../ExitCodes'
 export default class UpdateChannelCensorshipStatusCommand extends ContentDirectoryCommandBase {
   static description = 'Update Channel censorship status (Active/Inactive).'
   static flags = {
-    context: ContentDirectoryCommandBase.contextFlag,
+    context: ContentDirectoryCommandBase.ownerContextFlag,
   }
 
   static args = [
@@ -32,7 +32,7 @@ export default class UpdateChannelCensorshipStatusCommand extends ContentDirecto
     let { id, status, rationale } = this.parse(UpdateChannelCensorshipStatusCommand).args
 
     if (!context) {
-      context = await this.promptForContext()
+      context = await this.promptForOwnerContext()
     }
 
     const currentAccount = await this.getRequiredSelectedAccount()