Index: pages/dashboard/admin/adminDashboard.telefunc.ts
===================================================================
--- pages/dashboard/admin/adminDashboard.telefunc.ts	(revision adc31efc1b4507b5b3a779e6190ce32df4c108a5)
+++ pages/dashboard/admin/adminDashboard.telefunc.ts	(revision be22289d1b599049be201869aad6fd0aa51ebd42)
@@ -68,5 +68,5 @@
     const { c, userId } = await requireAdmin()
 
-    const details = await drizzleQueries.getDetailsForNewComponent(type);
+    const details = await drizzleQueries.getDetailsNewComponent(type);
 
     return details;
Index: server/telefunc/ctx.ts
===================================================================
--- server/telefunc/ctx.ts	(revision adc31efc1b4507b5b3a779e6190ce32df4c108a5)
+++ server/telefunc/ctx.ts	(revision be22289d1b599049be201869aad6fd0aa51ebd42)
@@ -10,11 +10,4 @@
     const n = Number(sessionUserId);
     return Number.isInteger(n) && n > 0 ? n : undefined;
-}
-
-export function requireUser() {
-    const c = ctx();
-    const userId = parseSessionUserId(c.session?.user?.id);
-    if (!userId) throw Abort();
-    return { c, userId };
 }
 
@@ -31,7 +24,13 @@
 }
 
+export function requireUser() {
+    const c = ctx();
+    const userId = parseSessionUserId(c.session?.user?.id);
+    if (!userId) throw Abort();
+    return { c, userId };
+}
+
 export async function requireAdmin() {
     const { c, userId } = requireUser();
-
 
     if(!c.session?.user?.isAdmin) throw Abort();
