mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
Added user to export call
fixes #2612 - added user to db.exportContent()
This commit is contained in:
parent
9c1fe62173
commit
910bab8a6e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user