From a153cf39e4f37408575874cde46722d15cdcde40 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 30 Dec 2024 17:44:29 -0600 Subject: [PATCH] Change End Date --- commands/commit-count.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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));