mirror of
https://github.com/strapi/strapi.git
synced 2025-08-22 07:38:41 +00:00
Remove user key from generated databases.json file
This commit is contained in:
parent
7f2a5cbb66
commit
e8e6b91e4f
@ -10,7 +10,7 @@ const logger = require('strapi-utils').logger;
|
|||||||
module.exports = (scope, success, error) => {
|
module.exports = (scope, success, error) => {
|
||||||
const knex = require(path.resolve(`${scope.rootPath}/node_modules/knex`))({
|
const knex = require(path.resolve(`${scope.rootPath}/node_modules/knex`))({
|
||||||
client: scope.client.module,
|
client: scope.client.module,
|
||||||
connection: Object.assign(scope.database.settings, {
|
connection: Object.assign({}, scope.database.settings, {
|
||||||
user: scope.database.settings.username
|
user: scope.database.settings.username
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user