From d3c471a39a0010c18ae60142f8e980043241968c Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 8 Nov 2025 23:02:08 +0000 Subject: [PATCH] completionId: cgen-f4b445acfffa4cdd824030c35140647b cgen-f4b445acfffa4cdd824030c35140647b --- server/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/index.ts b/server/index.ts index b7de241a..04ae4dc9 100644 --- a/server/index.ts +++ b/server/index.ts @@ -1567,15 +1567,15 @@ export function createServer() { } }); - app.get("/api/applications", async (req, res) => { + app.get("/api/applications-old", async (req, res) => { const owner = String(req.query.owner || ""); if (!owner) return res.status(400).json({ error: "owner required" }); try { const { data, error } = await adminSupabase - .from("project_applications") - .select(`*, projects!inner(id, title, user_id)`) - .eq("projects.user_id", owner) - .order("created_at", { ascending: false }) + .from("aethex_applications") + .select(`*`) + .eq("creator_id", owner) + .order("applied_at", { ascending: false }) .limit(50); if (error) return res.status(500).json({ error: error.message }); res.json(data || []);