src/app/common/csv-stream.service.ts
Function streamToCsv
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
streamToCsv(columns: ExportColumnDef[]): Transform {
// Create a stream to turn Mongo records into CSV rows
const stream = through2.obj((chunk, enc, callback) => {
const row = [];