@solidstarters/solid-code-builder 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Injectable } from '@nestjs/common';
|
|
2
2
|
import { InjectEntityManager, InjectRepository } from '@nestjs/typeorm';
|
|
3
|
-
import { DiscoveryService } from "@nestjs/core";
|
|
3
|
+
import { DiscoveryService, ModuleRef } from "@nestjs/core";
|
|
4
4
|
import { EntityManager, Repository } from 'typeorm';
|
|
5
5
|
|
|
6
6
|
import { CRUDService } from '<%= calculateModuleFileImportPath(module,"src/services/crud.service") %>';
|
|
@@ -20,17 +20,17 @@ export class <%= classify(model) %>Service extends CRUDService<<%= classify(mode
|
|
|
20
20
|
constructor(
|
|
21
21
|
readonly modelMetadataService: ModelMetadataService,
|
|
22
22
|
readonly moduleMetadataService: ModuleMetadataService,
|
|
23
|
-
readonly mediaStorageProviderService: MediaStorageProviderMetadataService,
|
|
24
23
|
readonly configService: ConfigService,
|
|
25
24
|
readonly fileService: FileService,
|
|
26
|
-
readonly mediaService: MediaService,
|
|
27
25
|
readonly discoveryService: DiscoveryService,
|
|
28
26
|
readonly crudHelperService: CrudHelperService,
|
|
29
27
|
@InjectEntityManager()
|
|
30
28
|
readonly entityManager: EntityManager,
|
|
31
29
|
@InjectRepository(<%= classify(model) %>, '<%= dataSource %>')
|
|
32
30
|
readonly repo: Repository<<%= classify(model) %>>,
|
|
31
|
+
readonly moduleRef: ModuleRef
|
|
32
|
+
|
|
33
33
|
) {
|
|
34
|
-
super(modelMetadataService, moduleMetadataService,
|
|
34
|
+
super(modelMetadataService, moduleMetadataService, configService, fileService, discoveryService, crudHelperService,entityManager, repo, '<%= model %>', '<%= module %>', moduleRef);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Injectable } from '@nestjs/common';
|
|
2
2
|
import { InjectEntityManager, InjectRepository } from '@nestjs/typeorm';
|
|
3
|
-
import { DiscoveryService } from "@nestjs/core";
|
|
3
|
+
import { DiscoveryService, ModuleRef } from "@nestjs/core";
|
|
4
4
|
import { EntityManager, Repository } from 'typeorm';
|
|
5
5
|
|
|
6
6
|
import { CRUDService } from '<%= calculateModuleFileImportPath(module,"src/services/crud.service") %>';
|
|
@@ -20,17 +20,17 @@ export class <%= classify(model) %>Service extends CRUDService<<%= classify(mode
|
|
|
20
20
|
constructor(
|
|
21
21
|
readonly modelMetadataService: ModelMetadataService,
|
|
22
22
|
readonly moduleMetadataService: ModuleMetadataService,
|
|
23
|
-
readonly mediaStorageProviderService: MediaStorageProviderMetadataService,
|
|
24
23
|
readonly configService: ConfigService,
|
|
25
24
|
readonly fileService: FileService,
|
|
26
|
-
readonly mediaService: MediaService,
|
|
27
25
|
readonly discoveryService: DiscoveryService,
|
|
28
26
|
readonly crudHelperService: CrudHelperService,
|
|
29
27
|
@InjectEntityManager()
|
|
30
28
|
readonly entityManager: EntityManager,
|
|
31
29
|
@InjectRepository(<%= classify(model) %>, '<%= dataSource %>')
|
|
32
30
|
readonly repo: Repository<<%= classify(model) %>>,
|
|
31
|
+
readonly moduleRef: ModuleRef
|
|
32
|
+
|
|
33
33
|
) {
|
|
34
|
-
super(modelMetadataService, moduleMetadataService,
|
|
34
|
+
super(modelMetadataService, moduleMetadataService, configService, fileService, discoveryService, crudHelperService,entityManager, repo, '<%= model %>', '<%= module %>', moduleRef);
|
|
35
35
|
}
|
|
36
36
|
}
|