source: pages/index/approvedBuilds.telefunc.ts@ ee1fa4e

main
Last change on this file since ee1fa4e was b69759d, checked in by Tome <gjorgievtome@…>, 7 months ago

add telefunctions

  • Property mode set to 100644
File size: 377 bytes
Line 
1import * as drizzleQueries from "../../database/drizzle/queries";
2import { ctx } from "../../server/telefunc/ctx";
3
4export async function getApprovedBuildCards( { limit }
5 : { limit?: number }) {
6 const context = ctx();
7
8 const approvedBuilds = await drizzleQueries.getApprovedBuilds(context.db, limit);
9
10 return approvedBuilds;
11}
Note: See TracBrowser for help on using the repository browser.