Skip to content

Commit

Permalink
fix: fix CLI execution with explicit --controllerType=BASIC option
Browse files Browse the repository at this point in the history
fix #10494

Signed-off-by: TC <[email protected]>
  • Loading branch information
major-winter authored and Chu committed Aug 20, 2024
1 parent f285ad3 commit 500e20b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/generators/controller/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ module.exports = class ControllerGenerator extends ArtifactGenerator {

if (this.options.controllerType) {
Object.assign(this.artifactInfo, {
controllerType: this.options.controllerType,
controllerType:
ControllerGenerator[this.options.controllerType.toUpperCase()],
});
return;
}
Expand Down

0 comments on commit 500e20b

Please sign in to comment.