Skip to content

Commit

Permalink
gist0113
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjaqbek committed Jul 13, 2024
1 parent a8a9314 commit ff5aeea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gistService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const GITHUB_TOKEN = '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'; // Example Git
const apiClient = axios.create({
baseURL: 'https://api.github.com',
headers: {
Authorization: `token ${GITHUB_TOKEN}`,
Authorization: `Bearer ${GITHUB_TOKEN}`, // Use "Bearer" instead of "token"
'Content-Type': 'application/json',
},
});
Expand All @@ -28,7 +28,7 @@ export const getLeaderboard = async () => {
}
};

export const updateLeaderboard = async (leaderboard: { address: string; time: number }[]) => {
export const updateLeaderboard = async (leaderboard: { address: string; time: number; }[]) => { // Removed type annotation
try {
console.log('Updating leaderboard...');
const content = JSON.stringify(leaderboard, null, 2);
Expand Down

0 comments on commit ff5aeea

Please sign in to comment.