summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/util/Database.ts13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/util/util/Database.ts b/src/util/util/Database.ts
index 5d48ac03..1cf7adfd 100644
--- a/src/util/util/Database.ts
+++ b/src/util/util/Database.ts
@@ -36,17 +36,10 @@ if (!process.env) {
 const dbConnectionString =
 	process.env.DATABASE || path.join(process.cwd(), "database.db");
 
-let DatabaseType = dbConnectionString.includes("://")
+const DatabaseType = dbConnectionString.includes("://")
 	? dbConnectionString.split(":")[0]?.replace("+srv", "")
-	: "sqlite";
-
-if (DatabaseType === "sqlite") {
-	try {
-		require("better-sqlite3");
-		DatabaseType = "better-sqlite3";
-		// eslint-disable-next-line no-empty
-	} catch (error) {}
-}
+	: "better-sqlite";
+
 const isSqlite = DatabaseType.includes("sqlite");
 
 const DataSourceOptions = new DataSource({