Merge pull request #591 from strapi/fix/mariadb

Remove user key from generated databases.json file
This commit is contained in:
Jim LAURIE 2018-02-07 11:33:14 +01:00 committed by GitHub
commit e87ed71c07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ const logger = require('strapi-utils').logger;
module.exports = (scope, success, error) => {
const knex = require(path.resolve(`${scope.rootPath}/node_modules/knex`))({
client: scope.client.module,
connection: Object.assign(scope.database.settings, {
connection: Object.assign({}, scope.database.settings, {
user: scope.database.settings.username
})
});