Skip to content

Commit

Permalink
- Fixed a bug with Service generator
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidArayan committed Nov 23, 2023
1 parent 013b07f commit fc3babb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk-core/src/generator/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ export class Generator {
public static generateServiceFile(data: GeneratorData): GeneratedSchema {
const className: string = `${Util.capitaliseClassName(data.package.name)}Service`;

let output: string = `import { Service, ServiceStaticContainer } from '@plattar/sdk-core';\n\n`;
let output: string = `import { Service, ServiceConfig, ServiceStaticContainer } from '@plattar/sdk-core';\n\n`;

output += `export class ${className} extends Service {\n`;
output += `\tprivate static readonly serviceContainer:ServiceStaticContainer = {service:null}\n`;
output += `\tprivate static readonly serviceContainer: ServiceStaticContainer = {service:null}\n`;
output += `\tpublic static override get container(): ServiceStaticContainer {\n`;
output += `\t\treturn this.serviceContainer;\n`;
output += `\t}\n`;
Expand Down

0 comments on commit fc3babb

Please sign in to comment.