diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-12 12:46:01 +0200 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-19 19:32:39 +1100 |
commit | 0ab0a6ff16cba2ddd4192351e6e9b9c1d6b7b5a3 (patch) | |
tree | 95bcabf42717ad5872787bb9a47157063bda91d1 /src | |
parent | Create webhooks (diff) | |
download | server-0ab0a6ff16cba2ddd4192351e6e9b9c1d6b7b5a3.tar.xz |
Replace deprecated property
Diffstat (limited to 'src')
-rw-r--r-- | src/api/start.ts | 2 | ||||
-rw-r--r-- | src/bundle/start.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/start.ts b/src/api/start.ts index a67e6f2b..495f4438 100644 --- a/src/api/start.ts +++ b/src/api/start.ts @@ -15,7 +15,7 @@ try { console.log("[API] Failed to get thread count! Using 1..."); } -if (cluster.isMaster && process.env.NODE_ENV == "production") { +if (cluster.isPrimary && process.env.NODE_ENV == "production") { console.log(`Primary ${process.pid} is running`); // Fork workers. diff --git a/src/bundle/start.ts b/src/bundle/start.ts index 0c85b58d..cac75960 100644 --- a/src/bundle/start.ts +++ b/src/bundle/start.ts @@ -17,7 +17,7 @@ try { console.log("[API] Failed to get thread count! Using 1..."); } -if (cluster.isMaster) { +if (cluster.isPrimary) { function getCommitOrFail() { try { return execSync("git rev-parse HEAD").toString().trim(); |