Skip to content

Commit 418aa29

Browse files
authored
fix: increase migration database client connection timeout to 10s (#132)
1 parent 075c440 commit 418aa29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/migrate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { multitenantDatabaseUrl } = getConfig()
77
async function connectAndMigrate(databaseUrl: string | undefined, migrationsDirectory: string) {
88
const dbConfig = {
99
connectionString: databaseUrl,
10-
connectionTimeoutMillis: 1000,
10+
connectionTimeoutMillis: 10_000,
1111
}
1212
const client = new Client(dbConfig)
1313
try {

0 commit comments

Comments
 (0)