Basic relay working!

This commit is contained in:
Owen
2025-02-23 16:49:41 -05:00
parent bebe40c8e8
commit afd87d07a3
8 changed files with 125 additions and 17 deletions

View File

@@ -79,9 +79,7 @@ export async function getConfig(req: Request, res: Response, next: NextFunction)
}
// Fetch sites for this exit node
const sitesRes = await db.query.sites.findMany({
where: eq(sites.exitNodeId, exitNode[0].exitNodeId),
});
const sitesRes = await db.select().from(sites).where(eq(sites.exitNodeId, exitNode[0].exitNodeId));
const peers = await Promise.all(sitesRes.map(async (site) => {
return {