Fix num_days

This commit is contained in:
Danny McCormick 2019-08-19 14:31:07 -04:00 committed by GitHub
parent 39d106ae30
commit 06922c1979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ function isLabeledStale(issue: Issue, label: string): boolean {
} }
function wasLastUpdatedBefore(issue: Issue, num_days: number): 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 = const millisSinceLastUpdated =
new Date().getTime() - new Date(issue.updated_at).getTime(); new Date().getTime() - new Date(issue.updated_at).getTime();
return millisSinceLastUpdated >= daysInMillis; return millisSinceLastUpdated >= daysInMillis;