Skip to content

Commit

Permalink
Fixed different property names
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihaase committed Jun 29, 2022
1 parent 70987f3 commit ac6ba27
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lenne.tech/cli",
"version": "0.0.73",
"version": "0.0.74",
"description": "lenne.Tech CLI: lt",
"keywords": [
"lenne.Tech",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export class <%= props.namePascal %>CreateInput extends <%= props.namePascal %>I
// ===================================================================================================================

/**
* Description of the property
* Description of the properties
*/
@Field(() => [String], { description: 'Description of the property', nullable: true })
@Field(() => [String], { description: 'Description of the properties', nullable: true })
@IsOptional()
property?: string[];
properties?: string[];
}
6 changes: 3 additions & 3 deletions src/templates/nest-server-module/inputs/template.input.ts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export class <%= props.namePascal %>Input {
// ===================================================================================================================

/**
* Description of the property
* Description of the properties
*/
@Restricted(RoleEnum.ADMIN, RoleEnum.S_CREATOR)
@Field(() => [String], { description: 'Description of the property', nullable: true })
@Field(() => [String], { description: 'Description of the properties', nullable: true })
@IsOptional()
property?: string[];
properties?: string[];
}
2 changes: 1 addition & 1 deletion src/templates/nest-server-module/template.model.ts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class <%= props.namePascal %> extends PersistenceModel {
// ===================================================================================================================

/**
* Description of the property
* Description of properties
*/
@Restricted(RoleEnum.ADMIN, RoleEnum.S_CREATOR)
@Field(() => [String], { description: 'Properties of <%= props.namePascal %>', nullable: 'items'})
Expand Down

0 comments on commit ac6ba27

Please sign in to comment.