aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2020-01-04 11:55:53 -0800
committerSam Wilkins <samwilkins333@gmail.com>2020-01-04 11:55:53 -0800
commitad4ac416017e7accb2df1824f3f4eda36337fa37 (patch)
tree4a70a8100841e315ec60065ff69603b93b896079 /src
parent65e172bf3d079c1712154bb68f333a7b2bfd9ad6 (diff)
small
Diffstat (limited to 'src')
-rw-r--r--src/server/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index 287725537..4dabf612d 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -28,8 +28,8 @@ import { isMaster } from "cluster";
import { execSync } from "child_process";
if (isMaster) {
- Session.initializeMaster().then(repl => {
- repl.registerCommand("pull", [], () => execSync("git pull", { stdio: ["ignore", "inherit", "inherit"] }));
+ Session.initializeMaster().then(({ registerCommand }) => {
+ registerCommand("pull", [], () => execSync("git pull", { stdio: ["ignore", "inherit", "inherit"] }));
});
} else {
Session.initializeWorker(launch);