fix(core): update

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

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartdata',
version: '5.0.35',
version: '5.0.36',
description: 'do more with data'
}

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