mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-07 11:16:37 +00:00
@@ -65,10 +65,12 @@ export async function createExitNode(
|
|||||||
[exitNode] = await db
|
[exitNode] = await db
|
||||||
.update(exitNodes)
|
.update(exitNodes)
|
||||||
.set({
|
.set({
|
||||||
reachableAt
|
reachableAt,
|
||||||
|
online: true
|
||||||
})
|
})
|
||||||
.where(eq(exitNodes.exitNodeId, exitNodeQuery.exitNodeId))
|
.where(eq(exitNodes.exitNodeId, exitNodeQuery.exitNodeId))
|
||||||
.returning();
|
.returning();
|
||||||
|
|
||||||
logger.info(`Updated exit node reachableAt to ${reachableAt}`);
|
logger.info(`Updated exit node reachableAt to ${reachableAt}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,8 @@ export async function createExitNode(publicKey: string, reachableAt: string | un
|
|||||||
.update(exitNodes)
|
.update(exitNodes)
|
||||||
.set({
|
.set({
|
||||||
reachableAt,
|
reachableAt,
|
||||||
publicKey
|
publicKey,
|
||||||
|
online: true
|
||||||
})
|
})
|
||||||
.where(eq(exitNodes.publicKey, publicKey))
|
.where(eq(exitNodes.publicKey, publicKey))
|
||||||
.returning();
|
.returning();
|
||||||
|
|||||||
Reference in New Issue
Block a user