Skip to content

Commit 6914cbb

Browse files
committed
fix: fix linting issue
Signed-off-by: Muhammad Aaqil <[email protected]>
1 parent 3abecb8 commit 6914cbb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/cli/generators/relation/belongs-to-relation.generator.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,10 @@ module.exports = class BelongsToRelationGenerator extends (
9191
);
9292
}
9393
returnStatement = `${returnStatement},\n\t this.${this.artifactInfo.paramSourceRepository}.${this.artifactInfo.relationPropertyName}(${this.artifactInfo.sourceModelPrimaryKey})`;
94-
structure.methods[index].statements[
95-
lastStatementIndex
96-
] = `return [${returnStatement}];`;
97-
structure.methods[
98-
index
99-
].returnType = `Promise<Promise<${this.artifactInfo.targetModelClassName}>[]>`;
94+
structure.methods[index].statements[lastStatementIndex] =
95+
`return [${returnStatement}];`;
96+
structure.methods[index].returnType =
97+
`Promise<Promise<${this.artifactInfo.targetModelClassName}>[]>`;
10098
parameters.forEach(({decorators}, paramIndex) => {
10199
decorators.forEach((decorator, decorIndex) => {
102100
structure.methods[index].parameters[paramIndex].decorators[

0 commit comments

Comments
 (0)