MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / loader

Function loader

apps/webapp/app/routes/admin.api.v1.gc.ts:37–52  ·  view source on GitHub ↗
({ request }: DataFunctionArgs)

Source from the content-addressed store, hash-verified

35}
36
37export async function loader({ request }: DataFunctionArgs) {
38 const user = await requireUser(request);
39
40 if (!user.admin) {
41 throw new Response("You must be an admin to perform this action", { status: 403 });
42 }
43
44 const entry = await waitTillGcFinishes();
45
46 return new Response(JSON.stringify(entry), {
47 status: 200,
48 headers: {
49 "Content-Type": "application/json",
50 },
51 });
52}

Callers

nothing calls this directly

Calls 2

requireUserFunction · 0.90
waitTillGcFinishesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…