fix(core): update

This commit is contained in:
2020-08-18 12:01:46 +00:00
parent 72894e3ef1
commit 0203eabdfd
10 changed files with 7706 additions and 1587 deletions

View File

@ -89,7 +89,7 @@ export class SmartDataDbDoc<T, TImplements> {
}
}
public static async getInstances<T>(filterArg): Promise<T[]> {
public static async getInstances<T>(filterArg: Partial<T>): Promise<T[]> {
const self: any = this; // fool typesystem
let referenceMongoDBCollection: SmartdataCollection<T>;
@ -111,7 +111,7 @@ export class SmartDataDbDoc<T, TImplements> {
return returnArray;
}
public static async getInstance<T>(filterArg): Promise<T> {
public static async getInstance<T>(filterArg: Partial<T>): Promise<T> {
const result = await this.getInstances<T>(filterArg);
if (result && result.length > 0) {
return result[0];