Fix num_days
This commit is contained in:
parent
39d106ae30
commit
06922c1979
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue