summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/util/util/Database.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/util/Database.ts b/src/util/util/Database.ts
index 927d6428..31dfa710 100644
--- a/src/util/util/Database.ts
+++ b/src/util/util/Database.ts
@@ -36,7 +36,7 @@ const dbConnectionString =
 	process.env.DATABASE || path.join(process.cwd(), "database.db");
 
 const DatabaseType = dbConnectionString.includes("://")
-	? dbConnectionString.split(":")[0]?.replace("+srv", "")
+	? dbConnectionString.split(":")[0]?.replace("+srv", "")?.replace("postgres", "postgresql")
 	: "sqlite";
 const isSqlite = DatabaseType.includes("sqlite");