Skip to content

Commit 4925172

Browse files
committed
Fix require problem for pg module
Closes #3
1 parent a3074e9 commit 4925172

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎result.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var pgPath;
66
try {
77
pgPath = path.dirname(require.resolve('pg'))
88
} catch(e) {
9-
pgPath = path.dirname(require.resolve('pg.js'))
9+
pgPath = path.dirname(require.resolve('pg.js')) + '/lib'
1010
}
1111

12-
module.exports = require(path.join(pgPath, 'lib', 'result.js'))
12+
module.exports = require(path.join(pgPath, 'result.js'))

0 commit comments

Comments
 (0)