fix(core): update

This commit is contained in:
Philipp Kunz 2024-03-26 13:22:33 +01:00
parent 090fb668cd
commit 37a9df9086
2 changed files with 3 additions and 3 deletions

View File

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

View File

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