Skip to content

Conversation

@rubenmarcus
Copy link
Contributor

it now paginates,limits,offset and also order always by pings

@rubenmarcus rubenmarcus self-assigned this Aug 11, 2025
@vercel
Copy link

vercel bot commented Aug 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Project Deployment Preview Comments Updated (UTC)
registry Ready Preview Comment Aug 12, 2025 0:00am

@rubenmarcus rubenmarcus merged commit d221190 into main Aug 12, 2025
3 checks passed
const accountId = searchParams.get("accountId") || undefined;
const searchTerm = searchParams.get("searchTerm") || undefined;

// When verifiedOnly is false, we need to fetch all agents first to sort by pings properly
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we sort verified by pings as well?

finalAgents = sortedAgents.slice(offset, offset + limit);
}

const result = JSON.parse(stringifyJsonWithBigint(finalAgents));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stringify, then parse?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants