feat: changed to module.exports

This commit is contained in:
Randell Dawson
2018-11-11 23:52:00 -08:00
committed by mrugesh mohapatra
parent 76c23be416
commit 2ae521c995
14 changed files with 36 additions and 31 deletions

View File

@@ -27,12 +27,13 @@ class PrProcessingLog {
saveToFile(this._logfile, JSON.stringify(log))
}
add(prNum) {
this._prs[prNum] = null;
add(prNum, prop) {
this._prs[prNum] = {};
this._prs[prNum][prop] = null;
}
update(prNum, status) {
this._prs[prNum] = status;
update(prNum, prop, value) {
this._prs[prNum][prop] = value;
}
start() {
@@ -45,4 +46,4 @@ class PrProcessingLog {
}
};
exports.PrProcessingLog = PrProcessingLog;
module.exports = { PrProcessingLog };