Skip to content

Commit

Permalink
fix: use compact
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Jan 26, 2020
1 parent 5a07221 commit ecaab17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/demo/src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {createPool} from 'slonik'
// @ts-ignore
import {createFieldNameTransformationInterceptor} from 'slonik-interceptor-field-name-transformation'
import {load} from 'dotenv-extended'
import {camelCase} from 'lodash'
import {camelCase, compact} from 'lodash'

load()

Expand All @@ -21,6 +21,6 @@ export const slonik = createPool(process.env.POSTGRES_CONNECTION_STRING!, {
...poolConfig,
interceptors: [
createFieldNameTransformationInterceptor({format: 'CAMEL_CASE'}), // requires `transformProperty`
...(poolConfig.interceptors || [])
...compact(poolConfig.interceptors)
],
})

0 comments on commit ecaab17

Please sign in to comment.