put some notes for self

This commit is contained in:
kukulaka
2020-09-03 04:15:26 +01:00
parent 190bd6923e
commit 9ec4d1c548

View File

@@ -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);