Skip to content

Commit 83840a3

Browse files
nabdelgadirb-admike
andcommitted
fix: change service generator ds to uppercase
Co-authored-by: Biniam Admikew <binadmt@hotmail.com>
1 parent 8394c74 commit 83840a3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/cli/generators/service/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ module.exports = class ServiceGenerator extends ArtifactGenerator {
8383
let cmdDatasourceName;
8484
let datasourcesList;
8585

86-
// grab the datasourcename from the command line
86+
// grab the datasource name from the command line
8787
cmdDatasourceName = this.options.datasource
8888
? utils.toClassName(this.options.datasource) + 'Datasource'
8989
: '';

packages/cli/generators/service/templates/service-template.ts.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class <%= className %>ServiceProvider implements Provider<<%= className %
1212
constructor(
1313
// <%= dataSourceName %> must match the name property in the datasource json file
1414
@inject('datasources.<%= dataSourceName %>')
15-
protected dataSource: <%= dataSourceName %>DataSource = new <%= dataSourceClassName %>(),
15+
protected dataSource: <%= dataSourceClassName %> = new <%= dataSourceClassName %>(),
1616
) {}
1717

1818
value(): Promise<<%= className %>Service> {

packages/cli/test/integration/generators/service.integration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe('lb4 service', () => {
8686
);
8787
assert.fileContent(
8888
expectedFile,
89-
/dataSource: mydsDataSource = new MydsDataSource\(\),/,
89+
/dataSource: MydsDataSource = new MydsDataSource\(\),/,
9090
);
9191
assert.fileContent(
9292
expectedFile,

0 commit comments

Comments
 (0)