mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 10:22:39 +01:00
Hotfix postgres connection string to not silently fail migrations
This commit is contained in:
parent
9764881bf5
commit
f7c0317c8d
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user