diff --git a/packages/core/database/lib/connection.js b/packages/core/database/lib/connection.js index ac23d955df..e03e884cb2 100644 --- a/packages/core/database/lib/connection.js +++ b/packages/core/database/lib/connection.js @@ -31,12 +31,12 @@ const clientMap = { const getSqlitePackageName = () => { // NOTE: allow forcing the package to use (mostly used for testing purposes) - if (typeof process.env.SQLITE_PKG !== undefined) { + if (typeof process.env.SQLITE_PKG !== 'undefined') { return process.env.SQLITE_PKG; } // NOTE: this tries to find the best sqlite module possible to use - // while keeping retro compatibiity + // while keeping retro compatibility return ( trySqlitePackage('better-sqlite3') || trySqlitePackage('@vscode/sqlite3') || diff --git a/packages/core/database/package.json b/packages/core/database/package.json index aa208d00ba..be3c964c8b 100644 --- a/packages/core/database/package.json +++ b/packages/core/database/package.json @@ -34,7 +34,7 @@ "date-fns": "2.22.1", "debug": "4.3.1", "fs-extra": "10.0.0", - "knex": "^1.0.4", + "knex": "1.0.4", "lodash": "4.17.21", "umzug": "2.3.0" },