Added user to export call

fixes #2612
- added user to db.exportContent()
This commit is contained in:
Sebastian Gierlinger 2014-04-18 09:21:16 +02:00
parent 9c1fe62173
commit 910bab8a6e

View File

@ -114,8 +114,7 @@ adminControllers = {
}, },
// frontend route for downloading a file // frontend route for downloading a file
exportContent: function (req, res) { exportContent: function (req, res) {
/*jslint unparam:true*/ api.db.exportContent.call({user: req.session.user}).then(function (exportData) {
api.db.exportContent().then(function (exportData) {
// send a file to the client // send a file to the client
res.set('Content-Disposition', 'attachment; filename="GhostData.json"'); res.set('Content-Disposition', 'attachment; filename="GhostData.json"');
res.json(exportData); res.json(exportData);