fix: exclude db key from v3 export

main
NGPixel 1 week ago
parent 3b28ac18e5
commit 74f5cce2d7
No known key found for this signature in database

@ -276,7 +276,9 @@ module.exports = {
if (has('settings')) {
WIKI.logger.info('Backup: writing settings...')
const settings = {
...WIKI.config,
// The database connection is this instance's own, credentials and
// all, and a 3.x import has no use for it.
..._.omit(WIKI.config, ['db']),
modules: {
analytics: await WIKI.models.analytics.query(),
authentication: (await WIKI.models.authentication.query()).map(a => ({

Loading…
Cancel
Save