Skip to content

Commit 427a01d

Browse files
committed
small fixes
1 parent 89a6b73 commit 427a01d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/util/MongoBinary.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default class MongoBinary {
131131

132132
if (opts.debug) {
133133
if (typeof opts.debug === 'function' && opts.debug.apply && opts.debug.call) {
134-
debug = opts.debug;
134+
this.debug = opts.debug;
135135
} else {
136136
this.debug = console.log.bind(null);
137137
}
@@ -149,7 +149,7 @@ export default class MongoBinary {
149149
if (systemBinary) {
150150
binaryPath = await this.getSystemPath(systemBinary);
151151
if (binaryPath) {
152-
const binaryVersion = execSync('mongod --version')
152+
const binaryVersion = execSync(`${binaryPath} --version`)
153153
.toString()
154154
.split('\n')[0]
155155
.split(' ')[2];

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,6 +2200,11 @@ decompress@^4.2.0:
22002200
pify "^2.3.0"
22012201
strip-dirs "^2.0.0"
22022202

2203+
dedent@^0.7.0:
2204+
version "0.7.0"
2205+
resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c"
2206+
integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=
2207+
22032208
deep-extend@^0.6.0:
22042209
version "0.6.0"
22052210
resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac"

0 commit comments

Comments
 (0)