fix(core): update

This commit is contained in:
2024-03-26 13:21:36 +01:00
parent a2ccf15f69
commit a1c807261c
2 changed files with 8 additions and 1 deletions

View File

@ -127,6 +127,13 @@ export class SmartDataDbDoc<T extends TImplements, TImplements, TManager extends
}
}
/**
* get a unique id prefixed with the class name
*/
public static async getUniqueId<T = any>(this: plugins.tsclass.typeFest.Class<T>) {
return `${this.name}:${plugins.smartunique.shortId(20)}`;
}
/**
* get cursor
* @returns