mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Merge pull request #2615 from sebgie/issue#2612
Added user to export call
This commit is contained in:
commit
65b604c939
1 changed files with 1 additions and 2 deletions
|
@ -114,8 +114,7 @@ adminControllers = {
|
|||
},
|
||||
// frontend route for downloading a file
|
||||
exportContent: function (req, res) {
|
||||
/*jslint unparam:true*/
|
||||
api.db.exportContent().then(function (exportData) {
|
||||
api.db.exportContent.call({user: req.session.user}).then(function (exportData) {
|
||||
// send a file to the client
|
||||
res.set('Content-Disposition', 'attachment; filename="GhostData.json"');
|
||||
res.json(exportData);
|
||||
|
|
Loading…
Add table
Reference in a new issue