fix(core): update
This commit is contained in:
parent
090fb668cd
commit
37a9df9086
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartdata',
|
||||
version: '5.0.36',
|
||||
version: '5.0.37',
|
||||
description: 'do more with data'
|
||||
}
|
||||
|
@ -130,8 +130,8 @@ 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)}`;
|
||||
public static async getNewId<T = any>(this: plugins.tsclass.typeFest.Class<T>, lengthArg: number = 20) {
|
||||
return `${this.name}:${plugins.smartunique.shortId(lengthArg)}`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user