Also dont return if you are passing an exit node

This commit is contained in:
Owen
2025-07-17 14:59:49 -07:00
parent 28b57ba652
commit 5148988dcc

View File

@@ -27,13 +27,9 @@ export async function traefikConfigProvider(
}) })
.from(exitNodes) .from(exitNodes)
.where(eq(exitNodes.name, exitNodeName)); .where(eq(exitNodes.name, exitNodeName));
if (!exitNode) { if (exitNode) {
logger.error( currentExitNodeId = exitNode.exitNodeId;
`Exit node with name ${exitNodeName} not found in the database`
);
return [];
} }
currentExitNodeId = exitNode.exitNodeId;
} else { } else {
const [exitNode] = await tx const [exitNode] = await tx
.select({ .select({