File tree 3 files changed +8
-1
lines changed
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+ - Fixes issue in ` database:settings:get ` where the value wasn't being properly displayed.
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ export class Client {
245
245
method : options . method ,
246
246
} ;
247
247
248
- if ( options . json ) {
248
+ if ( options . json !== undefined ) {
249
249
fetchOptions . body = JSON . stringify ( options . json ) ;
250
250
}
251
251
Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ export default new Command("database:settings:get <path>")
44
44
original : err ,
45
45
} ) ;
46
46
}
47
+ // strictTriggerValidation returns an object, not a single string.
48
+ // Check for an object and get the `value` from it.
49
+ if ( typeof res . body === "object" ) {
50
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
51
+ res . body = ( res . body as any ) . value ;
52
+ }
47
53
utils . logSuccess ( `For database instance ${ options . instance } \n\t ${ path } = ${ res . body } ` ) ;
48
54
}
49
55
) ;
You can’t perform that action at this time.
0 commit comments