Move utils to backend-core
This commit is contained in:
parent
402426a5f3
commit
e169454490
|
@ -18,6 +18,14 @@ export const generateAppID = (tenantId?: string | null) => {
|
||||||
return `${id}${newid()}`
|
return `${id}${newid()}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates a new table ID.
|
||||||
|
* @returns The new table ID which the table doc can be stored under.
|
||||||
|
*/
|
||||||
|
export function generateTableID() {
|
||||||
|
return `${DocumentType.TABLE}${SEPARATOR}${newid()}`
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a new row ID for the specified table.
|
* Gets a new row ID for the specified table.
|
||||||
* @param tableId The table which the row is being created for.
|
* @param tableId The table which the row is being created for.
|
||||||
|
|
|
@ -77,7 +77,7 @@ export function getTableParams(tableId?: Optional, otherProps = {}) {
|
||||||
* @returns The new table ID which the table doc can be stored under.
|
* @returns The new table ID which the table doc can be stored under.
|
||||||
*/
|
*/
|
||||||
export function generateTableID() {
|
export function generateTableID() {
|
||||||
return `${DocumentType.TABLE}${SEPARATOR}${newid()}`
|
return dbCore.generateTableID()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue