fix: improved log file data

This commit is contained in:
Randell Dawson
2018-11-12 01:36:54 -08:00
committed by mrugesh mohapatra
parent 2ae521c995
commit ce156ee61d
2 changed files with 8 additions and 8 deletions

View File

@ -43,7 +43,7 @@ const prPropsToGet = ['number', 'labels', 'user'];
if (guideFolderErrorsComment) {
log.update(number, 'comment', guideFolderErrorsComment);
const result = await addComment(number, guideFolderErrorsComment);
await rateLimiter(1000);
await rateLimiter(1400);
labelsToAdd['status: needs update'] = 1;
}
else {
@ -71,7 +71,7 @@ const prPropsToGet = ['number', 'labels', 'user'];
if (newLabels.length) {
log.update(number, 'labels', newLabels);
addLabels(number, newLabels, log);
await rateLimiter(1000);
await rateLimiter(1400);
}
else {
log.update(number, 'labels', 'none added');

View File

@ -3,12 +3,12 @@ const { saveToFile } = require('./fileFunctions');
class PrProcessingLog {
constructor() {
this._start = null,
this._lastUpdate = null,
this._lastPRlogged = null,
this._finish = null,
this._prs = {}
this._logfile = 'data/open-prs-processed.json'
this._start = null;
this._lastUpdate = null;
this._lastPRlogged = null;
this._finish = null;
this._prs = {};
this._logfile = 'data/open-prs-processed.json';
}
import() {