diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-01-04 11:55:53 -0800 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-01-04 11:55:53 -0800 |
commit | ad4ac416017e7accb2df1824f3f4eda36337fa37 (patch) | |
tree | 4a70a8100841e315ec60065ff69603b93b896079 | |
parent | 65e172bf3d079c1712154bb68f333a7b2bfd9ad6 (diff) |
small
-rw-r--r-- | src/server/index.ts | 4 |
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); |