Changeset f14dc71
- Timestamp:
- 12/25/25 00:55:19 (7 months ago)
- Branches:
- main
- Children:
- d4842f4
- Parents:
- 8849e3b
- File:
-
- 1 edited
-
pages/+Layout.telefunc.ts (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pages/+Layout.telefunc.ts
r8849e3b rf14dc71 19 19 } 20 20 21 export async function onGetComponentDetails({ componentId }22 : { componentId: number }) {23 const context = ctx();24 21 25 if(!Number.isInteger(componentId) || componentId <= 0) throw Abort();26 27 const componentDetails = await drizzleQueries.getComponentDetails(context.db, componentId);28 29 if(!componentDetails) throw Abort();30 31 return componentDetails;32 }33 22 34 23 export async function onSuggestComponent({ link, description, componentType } … … 53 42 54 43 // Shared 44 45 export async function onGetComponentDetails({ componentId } 46 : { componentId: number }) { 47 const context = ctx(); 48 49 if(!Number.isInteger(componentId) || componentId <= 0) throw Abort(); 50 51 const componentDetails = await drizzleQueries.getComponentDetails(context.db, componentId); 52 53 if(!componentDetails) throw Abort(); 54 55 return componentDetails; 56 } 55 57 56 58 export async function onGetBuildDetails({ buildId }
Note:
See TracChangeset
for help on using the changeset viewer.
