(config: ExportCollectionConfig, getItemsService: IGetItemsService)
| 17 | } |
| 18 | |
| 19 | public addCollectionExporter(config: ExportCollectionConfig, getItemsService: IGetItemsService) { |
| 20 | for (let collectionName in config) { |
| 21 | const opts = config[collectionName]!; |
| 22 | this.exporters.push({ |
| 23 | watch: opts.watch, |
| 24 | exporter: new CollectionExporter(collectionName, getItemsService, opts, this.logger), |
| 25 | }); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | // SECOND: Import if needed |
| 30 | public async loadAll(merge = false) { |
no outgoing calls
no test coverage detected