mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +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);
|
||||
});
|
||||
},
|
||||
async.apply(converter.json2csv),
|
||||
function (payload, next) {
|
||||
converter.json2csv(payload, next, {
|
||||
checkSchemaDifferences: false,
|
||||
emptyFieldValue: '',
|
||||
});
|
||||
},
|
||||
], function (err, csv) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
|
||||
Reference in New Issue
Block a user