Changeset f14dc71


Ignore:
Timestamp:
12/25/25 00:55:19 (7 months ago)
Author:
Tome <gjorgievtome@…>
Branches:
main
Children:
d4842f4
Parents:
8849e3b
Message:

reorder telefunctions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pages/+Layout.telefunc.ts

    r8849e3b rf14dc71  
    1919}
    2020
    21 export async function onGetComponentDetails({ componentId }
    22                                            : { componentId: number }) {
    23     const context = ctx();
    2421
    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 }
    3322
    3423export async function onSuggestComponent({ link, description, componentType }
     
    5342
    5443// Shared
     44
     45export 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}
    5557
    5658export async function onGetBuildDetails({ buildId }
Note: See TracChangeset for help on using the changeset viewer.