mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 08:25:06 +03:00
Fixed exporting extra tables for endpoint db/backup
refs #8719
- initial commit: 40c8eacd44
- we have forgotten that there is another endpoint which triggers an export (the backup endpoint)
- this endpoint needs to accept the new `include` query param as well (was missing)
This commit is contained in:
parent
1b5eae2af5
commit
1ce504bb2d
@ -36,6 +36,7 @@ db = {
|
||||
}
|
||||
|
||||
tasks = [
|
||||
localUtils.convertOptions(exporter.EXCLUDED_TABLES, null, {forModel: false}),
|
||||
backupDatabase,
|
||||
jsonResponse
|
||||
];
|
||||
|
@ -28,7 +28,7 @@ exportFileName = function exportFileName(options) {
|
||||
return Promise.resolve(options.filename + '.json');
|
||||
}
|
||||
|
||||
return models.Settings.findOne({key: 'title'}, _.merge({}, modelOptions, options)).then(function (result) {
|
||||
return models.Settings.findOne({key: 'title'}, _.merge({}, modelOptions, _.pick(options, 'transacting'))).then(function (result) {
|
||||
if (result) {
|
||||
title = security.string.safe(result.get('value')) + '.';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user