mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
disable strict checking of object schema in post upload CSV generation, #6490
This commit is contained in:
@@ -130,7 +130,12 @@ userController.exportPosts = function (req, res, next) {
|
|||||||
next(err, payload);
|
next(err, payload);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async.apply(converter.json2csv),
|
function (payload, next) {
|
||||||
|
converter.json2csv(payload, next, {
|
||||||
|
checkSchemaDifferences: false,
|
||||||
|
emptyFieldValue: '',
|
||||||
|
});
|
||||||
|
},
|
||||||
], function (err, csv) {
|
], function (err, csv) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return next(err);
|
return next(err);
|
||||||
|
|||||||
Reference in New Issue
Block a user