From c52f42c80df62e95876235db368f84a7eda09c97 Mon Sep 17 00:00:00 2001 From: Alexandre Bodin Date: Mon, 28 Mar 2022 19:24:02 +0200 Subject: [PATCH] Apply feedbacks --- packages/core/database/lib/connection.js | 4 ++-- packages/core/database/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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" },