File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ export default class WorkflowsActive extends Command {
7878 }
7979 default : {
8080 this . log ( `Invalid input ${ args . value } ` )
81+ return ;
8182 }
8283 }
8384 const pairs : api . KeyValuePair = {
@@ -93,8 +94,8 @@ export default class WorkflowsActive extends Command {
9394 client . setWorkflow ( payload ) ,
9495 withStandardErrors (
9596 {
96- '201 ' : ( ) => {
97- this . log ( `Workflow property has been set to ${ args . value } ` )
97+ '204 ' : ( ) => {
98+ this . log ( `Workflow has been set to ${ args . value } ` )
9899 } ,
99100 '403' : ( { error } : api . ErrorResponse ) => {
100101 this . log ( chalk . red ( `${ chalk . bold ( 'Error' ) } : ${ error } ` ) )
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export default class Workflows extends Command {
5555 } ,
5656 active : {
5757 header : 'Active' ,
58- get : ( row ) => row . active === undefined ? true : row . active ,
58+ get : ( row ) => ( row . active === undefined ? true : row . active ) ,
5959 } ,
6060 } ,
6161 { printLine : this . log } ,
You can’t perform that action at this time.
0 commit comments