Skip to content

Commit 1b50ec4

Browse files
committed
make compatible w/ ESM
1 parent 9c584de commit 1b50ec4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/util/migration_handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Client } from 'pg'
1+
import pg from 'pg'
22
import { migrate } from 'postgres-migrations'
33

44
export async function applyMigrations(config: any): Promise<void> {
5-
const client = new Client(config)
5+
const client = new pg.Client(config)
66
await client.connect()
77
try {
88
await migrate({ client }, __dirname + '/migrations')

0 commit comments

Comments
 (0)