fix(core): update
This commit is contained in:
		| @@ -213,6 +213,7 @@ tap.test('should ', async () => {}) | ||||
| // close the database connection | ||||
| // ======================================= | ||||
| tap.test('should close the database connection', async (tools) => { | ||||
|   await testDb.mongoDb.dropDatabase(); | ||||
|   await testDb.close(); | ||||
|   try { | ||||
|     await mongod.stop(); | ||||
|   | ||||
| @@ -70,6 +70,15 @@ export interface IManager { | ||||
|         } | ||||
|         return collectionFactory.getCollection(constructor.name, dbArg); | ||||
|       } | ||||
|       public static get manager() { | ||||
|         let manager: TManager; | ||||
|         if (managerArg['db']) { | ||||
|           manager = (managerArg as TManager); | ||||
|         } else { | ||||
|           manager = (managerArg as TDelayed<TManager>)(); | ||||
|         } | ||||
|         return manager; | ||||
|       } | ||||
|       public get manager() { | ||||
|         let manager: TManager; | ||||
|         if (managerArg['db']) { | ||||
|   | ||||
| @@ -47,6 +47,7 @@ export class SmartDataDbDoc<T extends TImplements, TImplements, TManager extends | ||||
|    */ | ||||
|   public static collection: SmartdataCollection<any>; | ||||
|   public collection: SmartdataCollection<any>; | ||||
|   public static manager: TManager; | ||||
|   public manager: TManager; | ||||
|  | ||||
|   /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user