fix(core): update

This commit is contained in:
2022-11-01 18:23:57 +01:00
parent 64005a0b32
commit 3f28ff80cb
13 changed files with 5422 additions and 15248 deletions

View File

@ -147,18 +147,18 @@ export class SmartDataDbDoc<T extends TImplements, TImplements, TManager extends
/**
* watch the collection
* @param this
* @param filterArg
* @param forEachFunction
* @param this
* @param filterArg
* @param forEachFunction
*/
public static async watch<T>(
public static async watch<T>(
this: plugins.tsclass.typeFest.Class<T>,
filterArg: plugins.tsclass.typeFest.PartialDeep<T>
) {
const collection: SmartdataCollection<T> = (this as any).collection;
const watcher: SmartdataDbWatcher<T> = await collection.watch(
convertFilterForMongoDb(filterArg),
(this as any)
this as any
);
return watcher;
}