Compare commits

..

2 Commits

Author SHA1 Message Date
56b8581d2b 5.0.37 2024-03-26 13:22:34 +01:00
37a9df9086 fix(core): update 2024-03-26 13:22:33 +01:00
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@push.rocks/smartdata", "name": "@push.rocks/smartdata",
"version": "5.0.36", "version": "5.0.37",
"private": false, "private": false,
"description": "do more with data", "description": "do more with data",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

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)}`;
} }
/** /**