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:
kirrg001 2018-08-10 15:31:54 +02:00
parent 1b5eae2af5
commit 1ce504bb2d
2 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ db = {
}
tasks = [
localUtils.convertOptions(exporter.EXCLUDED_TABLES, null, {forModel: false}),
backupDatabase,
jsonResponse
];

View File

@ -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')) + '.';
}