mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
remove notes no longer needed
This commit is contained in:
@@ -27,10 +27,7 @@ const responseManager: RequestHandler = asyncHandler(async (req, res, next) => {
|
||||
// have chosen to export csv
|
||||
const { Parser } = require('json2csv');
|
||||
|
||||
// need to get the actual fields in data
|
||||
const exportData = res.locals.data.data;
|
||||
/** @todo deep object parsing to get all fields
|
||||
*/
|
||||
|
||||
const json2csvParser = new Parser();
|
||||
const csv = await json2csvParser.parse(exportData);
|
||||
|
||||
Reference in New Issue
Block a user