- Timestamp:
- 12/27/25 02:27:36 (7 months ago)
- Branches:
- main
- Children:
- ad311c3
- Parents:
- 82aa6ae
- Location:
- pages
- Files:
-
- 2 edited
-
+Layout.telefunc.ts (modified) (1 diff)
-
forge/forge.telefunc.ts (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pages/+Layout.telefunc.ts
r82aa6ae r9854393 10 10 } 11 11 12 export async function onGetAllComponents({ componentType, limit, q }13 : { componentType?: string; limit?: number; q?: string }) {12 export async function onGetAllComponents({ componentType, limit, sort, q } 13 : { componentType?: string; limit?: number; sort?: string, q?: string }) { 14 14 const c = ctx(); 15 15 16 const components = await drizzleQueries.getAllComponents(c.db, limit, componentType, q);16 const components = await drizzleQueries.getAllComponents(c.db, limit, componentType, sort, q); 17 17 18 18 return components; -
pages/forge/forge.telefunc.ts
r82aa6ae r9854393 62 62 } 63 63 64 export async function onGetCompatibleComponents({ buildId, componentType }: { buildId: number, componentType: string }) { 64 export async function onGetCompatibleComponents({ buildId, componentType, limit, sort } 65 : { db: Database, buildId: number, componentType: string, limit?: number, sort?: string }) { 65 66 const { c, userId } = requireUser() 66 67 67 68 if(!Number.isInteger(buildId) || buildId <= 0) throw Abort(); 68 69 69 const compatibleComponents = await drizzleQueries.getCompatibleComponents(c.db, buildId, componentType );70 const compatibleComponents = await drizzleQueries.getCompatibleComponents(c.db, buildId, componentType, limit, sort); 70 71 71 72 if(!compatibleComponents) throw Abort();
Note:
See TracChangeset
for help on using the changeset viewer.
