Skip to content

Commit 4925172

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

result.js

+2-2
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)