Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pg.connect(config.connection, function (err, conn, done) {
if (err) {
return deferred.reject(err)
}
orm._connection = conn
return deferred.resolve({connection: conn, release: () => {
return done()
}})
})