feat(groups): add home board settings (#2321)

This commit is contained in:
Meier Lukas committed 2025-02-16 11:39:31 +01:00
1 parent 33ef9f6678
commit ffe7259802
40 files changed
+4536 -146

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { max } from "drizzle-orm";
import type { HomarrDatabase } from "../driver";
import { groups } from "../schema";
export const getMaxGroupPositionAsync = async (db: HomarrDatabase) => {
return await db
.select({ value: max(groups.position) })
.from(groups)
.then((result) => result[0]?.value ?? 1);
};
+1
View File
@@ -1,2 +1,3 @@
export * from "./item";
export * from "./server-setting";
export * from "./group";