File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ module.exports = function(config) {
39
39
port : 9876 ,
40
40
colors : true ,
41
41
logLevel : config . LOG_INFO ,
42
- autoWatch : true ,
43
- browsers : [ 'Chrome ' ] ,
44
- singleRun : false ,
42
+ autoWatch : false ,
43
+ browsers : [ 'ChromeHeadless ' ] ,
44
+ singleRun : true ,
45
45
concurrency : Infinity
46
46
} ) ;
47
47
} ;
Original file line number Diff line number Diff line change @@ -71,7 +71,16 @@ export class Collection {
71
71
72
72
// Set documents
73
73
this . documents = [ ] ;
74
- if ( collection . mainDocuments && collection . mainDocuments . length > 0 ) {
74
+
75
+ if ( this . agency === 'eao' && collection . mainDocument ) {
76
+ // EAO main documents are still returned as a single element
77
+ this . documents . push ( {
78
+ name : collection . mainDocument . document . displayName ,
79
+ ref : this . getURL ( collection . mainDocument . document . _id ) ,
80
+ date : collection . mainDocument . document . documentDate ? new Date ( collection . mainDocument . document . documentDate ) : null
81
+ } ) ;
82
+ } else if ( collection . mainDocuments && collection . mainDocuments . length > 0 ) {
83
+ // MEM main documents come in an array
75
84
const mainDocs = collection . mainDocuments . filter ( ( doc ) => {
76
85
return doc . document && doc . document . isPublished ;
77
86
} ) . sort ( ( a , b ) => { return a . sortOrder - b . sortOrder ; } ) ;
You can’t perform that action at this time.
0 commit comments