Skip to content

Commit

Permalink
fix: logger
Browse files Browse the repository at this point in the history
  • Loading branch information
komninoschatzipapas committed Jun 25, 2021
1 parent 19f0751 commit b1f1800
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/migrations.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { migrate } from 'postgres-migrations'
import { Client } from 'pg'
import logger from './logger'

export async function applyMigrations(): Promise<void> {
logger.info('Applying migrations')
console.log('Applying migrations')

const dbConfig = {
connectionString: process.env.DATABASE_URL
Expand All @@ -16,5 +15,5 @@ export async function applyMigrations(): Promise<void> {
} finally {
await client.end()
}
logger.info('Finished applying migrations')
console.log('Finished applying migrations')
}

0 comments on commit b1f1800

Please sign in to comment.