Reconcile validated Turso runtime fix with republished main history
Hop-State: A_06FP6A2CG8PVBRDVQ5WGCN0 Hop-Proposal: R_06FP6A0YW23RY0N7Z5M8DW0 Hop-Task: T_06FP67JVF4BHPYKKC37XKQ8 Hop-Attempt: AT_06FP69RZ96ZMNF9Y5S02MT0
This commit is contained in:
@@ -57,7 +57,7 @@ export async function buildGossipPayload(since?: string): Promise<SwarmGossipPay
|
||||
const sinceDate = since ? new Date(since) : undefined;
|
||||
const handleEntries = await db.query.handleRegistry.findMany({
|
||||
where: sinceDate ? { updatedAt: { gt: sinceDate } } : undefined,
|
||||
orderBy: () => [desc(handleRegistry.updatedAt)],
|
||||
orderBy: (handleRegistry, { desc }) => [desc(handleRegistry.updatedAt)],
|
||||
limit: SWARM_CONFIG.maxHandlesPerGossip,
|
||||
});
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ export async function getActiveSwarmNodes(limit = 100): Promise<SwarmNodeInfo[]>
|
||||
|
||||
const nodes = await db.query.swarmNodes.findMany({
|
||||
where: { AND: [{ isActive: true }, { isBlocked: false }] },
|
||||
orderBy: () => [desc(swarmNodes.lastSeenAt)],
|
||||
orderBy: (swarmNodes, { desc }) => [desc(swarmNodes.lastSeenAt)],
|
||||
limit,
|
||||
});
|
||||
|
||||
@@ -146,7 +146,7 @@ export async function getNodesSince(since: Date, limit = 100): Promise<SwarmNode
|
||||
|
||||
const nodes = await db.query.swarmNodes.findMany({
|
||||
where: { AND: [{ updatedAt: { gt: since } }, { isBlocked: false }] },
|
||||
orderBy: () => [desc(swarmNodes.updatedAt)],
|
||||
orderBy: (swarmNodes, { desc }) => [desc(swarmNodes.updatedAt)],
|
||||
limit,
|
||||
});
|
||||
|
||||
@@ -265,7 +265,7 @@ export async function getSeedNodes(): Promise<string[]> {
|
||||
|
||||
const seeds = await db.query.swarmSeeds.findMany({
|
||||
where: { isEnabled: true },
|
||||
orderBy: () => [swarmSeeds.priority],
|
||||
orderBy: (swarmSeeds) => [swarmSeeds.priority],
|
||||
});
|
||||
|
||||
if (seeds.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user