diff --git a/src/_data/weeklyArtistChart.js b/src/_data/weeklyArtistChart.js index 143c4c0e..ac734307 100644 --- a/src/_data/weeklyArtistChart.js +++ b/src/_data/weeklyArtistChart.js @@ -41,7 +41,7 @@ export default async function() { if (now.weekday !== 1) return // only run on monday const startOfWeek = now.minus({ days: now.weekday + 1 }).startOf('day') - const endOfWeek = now.minus({ days: now.weekday - 5 }).endOf('day') + const endOfWeek = now.minus({ days: now.weekday - 7 }).endOf('day') const startOfWeekSeconds = startOfWeek.toSeconds() const endOfWeekSeconds = endOfWeek.toSeconds() const weekNumber = now.toFormat('kkkk-WW')