We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec5ca47 commit 2ca4a62Copy full SHA for 2ca4a62
src/models/reportCollection.js
@@ -1,4 +1,5 @@
1
const Base = require('./base');
2
+let projlist= [];
3
4
class reportCollection extends Base {
5
constructor(config) {
@@ -13,11 +14,15 @@ class reportCollection extends Base {
13
14
15
push(report) {
16
this.reports.push(report);
17
+ if (projlist.indexOf(report.project.name) === -1 {
18
+ projlist.push(report.project.name);
19
+ this.reports.push(report);
20
+ }
21
}
22
23
get length() {
24
return this.reports.length;
25
26
27
-module.exports = reportCollection;
28
+module.exports = reportCollection;
0 commit comments