mirror of
https://github.com/directus/directus.git
synced 2026-01-29 12:38:02 -05:00
put some notes for self
This commit is contained in:
@@ -30,6 +30,8 @@ const responseManager: RequestHandler = asyncHandler(async (req, res, next) => {
|
||||
|
||||
// need to get the actual fields in data
|
||||
const exportData = res.locals.data;
|
||||
/** @todo deep object parsing to get all fields
|
||||
*/
|
||||
|
||||
const fieldsOut = Object.keys(exportData);
|
||||
const csv = await json2csv.parse(exportData, fieldsOut);
|
||||
|
||||
Reference in New Issue
Block a user