Browse Source

Merge pull request #22207 from abpframework/auto-merge/rel-9-1/3494

Merge branch dev with rel-9.1
pull/22209/head
maliming 12 months ago
committed by GitHub
parent
commit
222ef26ee1
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 13
      npm/ng-packs/packages/schematics/src/utils/model.ts

13
npm/ng-packs/packages/schematics/src/utils/model.ts

@ -33,7 +33,6 @@ export function createImportRefsToModelReducer(params: ModelGeneratorParams) {
const reduceImportRefsToInterfaces = createImportRefToInterfaceReducerCreator(params);
const createRefToImportReducer = createRefToImportReducerCreator(params);
const { solution, types } = params;
return (models: Model[], importRefs: string[]) => {
const enums: string[] = [];
const interfaces = importRefs.reduce(reduceImportRefsToInterfaces, []);
@ -214,8 +213,6 @@ export function resolveAbpPackages(models: Model[]) {
renamePropForTenant(model.interfaces);
model.imports.forEach((imp, i) => {
fixImportNameForTenant(imp);
for (const ref of imp.refs) {
const path = VOLO_PACKAGE_PROXY_IMPORTS.get(ref);
if (path) {
@ -239,16 +236,6 @@ function renamePropForTenant(interfaces: Interface[]) {
}
}
function fixImportNameForTenant(imp: Import) {
imp.specifiers.forEach((spe, index) => {
const isTenant = spe.toLocaleLowerCase().includes(TENANT_KEY);
if (isTenant) {
imp.specifiers[index] = 'Saas' + spe;
}
});
}
export function resolveSelfGenericProps(params: Partial<ModelGeneratorParams>) {
const { types, solution } = params;
if (!types || !solution) {

Loading…
Cancel
Save