Skip to content

Commit 139996b

Browse files
Merge pull request #1 from robertoberlim/robertoberlim-patch-1
Robertoberlim patch 1
2 parents ec5ca47 + c42538a commit 139996b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/models/reportCollection.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const Base = require('./base');
2+
let projlist= [];
23

34
class reportCollection extends Base {
45
constructor(config) {
@@ -13,11 +14,15 @@ class reportCollection extends Base {
1314

1415
push(report) {
1516
this.reports.push(report);
17+
if (projlist.indexOf(report.project.name) === -1) {
18+
projlist.push(report.project.name);
19+
this.reports.push(report);
20+
}
1621
}
1722

1823
get length() {
1924
return this.reports.length;
2025
}
2126
}
2227

23-
module.exports = reportCollection;
28+
module.exports = reportCollection;

0 commit comments

Comments
 (0)