Ignore:
Timestamp:
12/28/25 17:27:19 (6 months ago)
Author:
Tome <gjorgievtome@…>
Branches:
main
Children:
1ac9ee4
Parents:
67186d2
Message:

Refactor queries and telefunctions

File:
1 edited

Legend:

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

    r67186d2 r8fe7f1a  
    108108    if (!Number.isInteger(buildId) || buildId <= 0) throw Abort();
    109109
    110     const newBuild = await drizzleQueries.cloneBuild(c.db, userId, buildId);
     110    const clonedBuildId = await drizzleQueries.cloneBuild(c.db, userId, buildId);
    111111
    112     if (!newBuild) throw Abort();
     112    if (!clonedBuildId) throw Abort();
    113113
    114     return newBuild;
     114    return clonedBuildId;
    115115}
    116116
     
    123123    if (!newBuildId) throw Abort();
    124124
    125     return { buildId: newBuildId };
     125    return newBuildId;
    126126}
     127
Note: See TracChangeset for help on using the changeset viewer.