diff --git a/src/main.ts b/src/main.ts index c6154e30..e2524b93 100644 --- a/src/main.ts +++ b/src/main.ts @@ -92,7 +92,7 @@ function isLabeledStale(issue: Issue, label: string): boolean { } function wasLastUpdatedBefore(issue: Issue, num_days: number): boolean { - const daysInMillis = 1000 * 60 * 60 * num_days; + const daysInMillis = 1000 * 60 * 60 * 24 * num_days; const millisSinceLastUpdated = new Date().getTime() - new Date(issue.updated_at).getTime(); return millisSinceLastUpdated >= daysInMillis;