♻️ refactor getGithubUserContribution

This commit is contained in:
platane
2022-04-21 19:18:27 +02:00
committed by Platane
parent d6e930af5b
commit 40b26d0110
6 changed files with 2572 additions and 2620 deletions

View File

@@ -15,9 +15,9 @@ export const generateContributionSnake = async (
} | null)[]
) => {
console.log("🎣 fetching github user contribution");
const { cells, colorScheme } = await getGithubUserContribution(userName);
const cells = await getGithubUserContribution(userName);
const grid = userContributionToGrid(cells, colorScheme);
const grid = userContributionToGrid(cells);
const snake = snake4;
console.log("📡 computing best route");