refactor: move usages of create-id to common package (#3606)

This commit is contained in:
Meier Lukas
2025-07-17 10:42:11 +02:00
committed by GitHub
parent d4acb01efd
commit c00110e426
56 changed files with 69 additions and 64 deletions

View File

@@ -1 +0,0 @@
export { createId } from "@paralleldrive/cuid2";

View File

@@ -9,5 +9,4 @@ export const db = database;
export type Database = typeof db;
export type { HomarrDatabaseMysql } from "./driver";
export { createId } from "@paralleldrive/cuid2";
export { handleDiffrentDbDriverOperationsAsync as handleTransactionsAsync } from "./transactions";

View File

@@ -1,4 +1,4 @@
import { objectKeys } from "@homarr/common";
import { createId, objectKeys } from "@homarr/common";
import {
createDocumentationLink,
everyoneGroup,
@@ -9,7 +9,7 @@ import {
import { defaultServerSettings, defaultServerSettingsKeys } from "@homarr/server-settings";
import type { Database } from "..";
import { createId, eq } from "..";
import { eq } from "..";
import {
getServerSettingByKeyAsync,
insertServerSettingByKeyAsync,

View File

@@ -6,7 +6,6 @@
"type": "module",
"exports": {
".": "./index.ts",
"./client": "./client.ts",
"./collection": "./collection.ts",
"./schema": "./schema/index.ts",
"./test": "./test/index.ts",