diff options
-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); |