fix: undefined uid when downloading posts

v1.18.x
Barış Soner Uşaklı 5 years ago
parent 5e3760d276
commit bdda022238

@ -104,7 +104,7 @@ userController.exportPosts = async function (req, res) {
checkSchemaDifferences: false, checkSchemaDifferences: false,
emptyFieldValue: '', emptyFieldValue: '',
}); });
res.set('Content-Type', 'text/csv').set('Content-Disposition', 'attachment; filename="' + req.params.uid + '_posts.csv"').send(csv); res.set('Content-Type', 'text/csv').set('Content-Disposition', 'attachment; filename="' + req.locals.uid + '_posts.csv"').send(csv);
}; };
userController.exportUploads = function (req, res, next) { userController.exportUploads = function (req, res, next) {

Loading…
Cancel
Save