适配domain改动

This commit is contained in:
Xu Chang 2024-04-30 10:04:10 +08:00
parent 4470b472f0
commit dbcdec7315
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ class AppLoader extends types_1.AppLoader {
const { dbConfig } = this.getConfiguration();
const { storageSchema } = require(`${path}/lib/oak-app-domain/Storage`);
const depGraph = (0, dependencyBuilder_1.analyzeDepedency)(process.cwd());
this.externalDependencies = Object.keys(depGraph.nodeDict);
this.externalDependencies = Object.keys(depGraph.ascOrder);
const { authDeduceRelationMap, selectFreeEntities, updateFreeDict } = this.requireSth('lib/configuration/relation');
this.aspectDict = Object.assign({}, index_1.default, this.requireSth('lib/aspects/index'));
this.dbStore = new DbStore_1.DbStore(storageSchema, () => this.contextBuilder(this.dbStore), dbConfig, authDeduceRelationMap, selectFreeEntities, updateFreeDict);

View File

@ -83,7 +83,7 @@ export class AppLoader<ED extends EntityDict & BaseEntityDict, Cxt extends Backe
const { dbConfig } = this.getConfiguration();
const { storageSchema } = require(`${path}/lib/oak-app-domain/Storage`);
const depGraph = analyzeDepedency(process.cwd());
this.externalDependencies = Object.keys(depGraph.nodeDict);
this.externalDependencies = Object.keys(depGraph.ascOrder);
const { authDeduceRelationMap, selectFreeEntities, updateFreeDict } = this.requireSth('lib/configuration/relation');
this.aspectDict = Object.assign({}, generalAspectDict, this.requireSth('lib/aspects/index'));
this.dbStore = new DbStore<ED, Cxt>(storageSchema, () => this.contextBuilder(this.dbStore), dbConfig, authDeduceRelationMap, selectFreeEntities, updateFreeDict);