Compare commits

..

11 Commits

Author SHA1 Message Date
Luke Tomlinson
5dcf6c7115 Update index.js 2021-07-14 09:50:42 -04:00
Luke Tomlinson
0ca8709f9f Use minutes for debugging 2021-07-14 09:41:34 -04:00
Luke Tomlinson
ddd0bef6c9 Update index.js 2021-07-14 09:31:56 -04:00
Luke Tomlinson
5d43220303 Update CHANGELOG.md 2021-07-14 09:31:34 -04:00
Luke Tomlinson
50125be254 Update CHANGELOG.md
Co-authored-by: Geoffrey Testelin <geoffrey.testelin@gmail.com>
2021-07-14 09:22:44 -04:00
Luke Tomlinson
6f3095b85a Update CHANGELOG.md
Co-authored-by: Geoffrey Testelin <geoffrey.testelin@gmail.com>
2021-07-14 09:22:44 -04:00
Luke Tomlinson
9293853a32 Update CHANGELOG.md
Co-authored-by: Geoffrey Testelin <geoffrey.testelin@gmail.com>
2021-07-14 09:22:44 -04:00
Luke Tomlinson
a0ac568ea2 Update CHANGELOG.md
Co-authored-by: Geoffrey Testelin <geoffrey.testelin@gmail.com>
2021-07-14 09:22:44 -04:00
Luke Tomlinson
513b8c1b30 Update CHANGELOG.md
Co-authored-by: Geoffrey Testelin <geoffrey.testelin@gmail.com>
2021-07-14 09:22:44 -04:00
Luke Tomlinson
2a7354712e Create CHANGELOG.md 2021-07-14 09:22:44 -04:00
Luke Tomlinson
1790671141 Update dist for v4 release 2021-07-14 09:22:44 -04:00
2 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View File

@@ -267,8 +267,8 @@ class IssuesProcessor {
this._statistics = new statistics_1.Statistics();
}
}
static _updatedSince(timestamp, num_days) {
const daysInMillis = 1000 * 60 * 60 * 24 * num_days;
static _updatedSince(timestamp, num_min) {
const daysInMillis = 1000 * 60 * num_min;
const millisSinceLastUpdated = new Date().getTime() - new Date(timestamp).getTime();
return millisSinceLastUpdated <= daysInMillis;
}

View File

@@ -29,8 +29,8 @@ import {LoggerService} from '../services/logger.service';
* Handle processing of issues for staleness/closure.
*/
export class IssuesProcessor {
private static _updatedSince(timestamp: string, num_days: number): boolean {
const daysInMillis = 1000 * 60 * 60 * 24 * num_days;
private static _updatedSince(timestamp: string, num_min: number): boolean {
const daysInMillis = 1000 * 60 * num_min;
const millisSinceLastUpdated =
new Date().getTime() - new Date(timestamp).getTime();