Skip to content

Commit

Permalink
Fix a regression to allow url config to be an object
Browse files Browse the repository at this point in the history
  • Loading branch information
jraoult committed Apr 25, 2024
1 parent 36c5c92 commit 5dd247a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/node-pg-migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ function readJson(json: unknown): void {
tsconfigPath = applyIf(tsconfigPath, tsconfigArg, json, isString);

// @ts-expect-error: this is a TS 4.8 bug
if ('url' in json && json.url && isString(json.url)) {
if ('url' in json && json.url) {
// @ts-expect-error: this is a TS 4.8 bug
DB_CONNECTION ??= json.url;
} else if (isClientConfig(json)) {
Expand Down

0 comments on commit 5dd247a

Please sign in to comment.