summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/start.ts2
1 files changed, 1 insertions, 1 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.