diff --git a/commands/commit-count.js b/commands/commit-count.js index 3cb4bc2..bc06eb5 100644 --- a/commands/commit-count.js +++ b/commands/commit-count.js @@ -179,11 +179,7 @@ module.exports = { interaction.options.getString('start-date') ?? threadStarterMessage.createdTimestamp, ); - const endDate = new Date( - interaction.options.getString('end-date') ?? - interaction.createdTimestamp, - ); - endDate.setDate(endDate.getDate() + 1); + const endDate = new Date(); while (currentDate <= endDate) { allDays.push(new Date(currentDate));