We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec5ca47 commit db161e3Copy full SHA for db161e3
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) {
@@ -12,12 +13,14 @@ class reportCollection extends Base {
12
13
}
14
15
push(report) {
- this.reports.push(report);
16
+ if (projlist.indexOf(report.project.name) === -1) {
17
+ projlist.push(report.project.name);
18
+ this.reports.push(report);
19
+ }
20
-
21
get length() {
22
return this.reports.length;
23
24
25
-module.exports = reportCollection;
26
+module.exports = reportCollection;
0 commit comments