diff --git a/ghost/core/core/server/api/endpoints/db.js b/ghost/core/core/server/api/endpoints/db.js index 2d3f60111d..f874104c89 100644 --- a/ghost/core/core/server/api/endpoints/db.js +++ b/ghost/core/core/server/api/endpoints/db.js @@ -70,19 +70,16 @@ module.exports = { }, importContent: { + statusCode(result) { + if (result && (result.data || result.images)) { + return 201; + } else { + return 202; + } + }, headers: { cacheInvalidate: true }, - options: [ - 'include' - ], - validation: { - options: { - include: { - values: exporter.BACKUP_TABLES - } - } - }, permissions: true, query(frame) { const siteTimezone = settingsCache.get('timezone');