diff --git a/packages/cli/generators/controller/index.js b/packages/cli/generators/controller/index.js index 459257c1d731..b6bff3d4b128 100644 --- a/packages/cli/generators/controller/index.js +++ b/packages/cli/generators/controller/index.js @@ -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; }