diff --git a/db.js b/db.js index 4e7d1e0d..730bb0a5 100644 --- a/db.js +++ b/db.js @@ -680,6 +680,7 @@ module.exports.CreateDB = function (parent, func) { // Postgres SQL var connectinArgs = parent.args.postgres; var dbname = (connectinArgs.database != null) ? connectinArgs.database : 'meshcentral'; + delete connectinArgs.database; obj.databaseType = 6; const pgtools = require('pgtools'); pgtools.createdb(connectinArgs, dbname, function (err, res) {