Skip to content

Refactors admin controller #12130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rotorsoft
Copy link
Contributor

Link to Issue

Closes: #12111

Description of Changes

Test Plan

Deployment Plan

Other Considerations

Comment on lines 101 to 110
export const getTopUsersList = async () => {
const res = await axios.get(`${SERVER_URL}/admin/top-users`, {
const res = await axios.get(`${SERVER_URL}/internal/GetTopUsers`, {
params: {
jwt: userStore.getState().jwt,
},
headers: {
address: userStore.getState().activeAccount?.address || '',
},
});
return res.data.result;
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this and just use useGetTopUsersQuery in TopUsers component

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.

Refactor admin controller to tRPC queries
2 participants