Skip to content

Commit

Permalink
Revert "Fix save shows instead of 'showsByDate' map"
Browse files Browse the repository at this point in the history
This reverts commit 3171846.
  • Loading branch information
niemisami committed Oct 24, 2023
1 parent 3171846 commit 883e091
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions google/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export const fetchShowlist = async (): Promise<{
);
const weekKeys = generateWeekObj(showsByDate);

saveShowlistJson(shows);
saveShowlistJson(showsByDate);
return { showsByDate, weekKeys };
};

Expand Down Expand Up @@ -226,5 +226,5 @@ const generateWeekObj = (showsByDate: Record<string, Show[]>) => {
return weekObj;
};

const saveShowlistJson = (shows: Show) =>
writeFile(`${FILE_URL}/ohjelmakartta.json`, JSON.stringify(shows));
const saveShowlistJson = (showsByDate: Record<string, Show[]>) =>
writeFile(`${FILE_URL}/ohjelmakartta.json`, JSON.stringify(showsByDate));

0 comments on commit 883e091

Please sign in to comment.