Fixed undefined variable references

- this was missed during the previous refactoring
This commit is contained in:
Daniel Lockyer 2022-03-01 09:04:05 +01:00
parent 3324ffc788
commit 52eb3181ee

View File

@ -4,13 +4,13 @@ module.exports = class DatabaseInfo {
*/
constructor(knex) {
this._knex = knex;
this._client = this.knex.client;
this._driver = this.client.config.client;
this._client = this._knex.client;
this._driver = this._client.config.client;
this._databaseDetails = {
// The underlying driver that `knex` uses
// ie. `sqlite3`, `mysql` or `mysql2`
driver: this.driver,
driver: this._driver,
// A capitalized version of the specific database used
database: 'unknown',