From ad4ac416017e7accb2df1824f3f4eda36337fa37 Mon Sep 17 00:00:00 2001 From: Sam Wilkins Date: Sat, 4 Jan 2020 11:55:53 -0800 Subject: small --- src/server/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2