From a10891a5a71d24edf86524a2d702251d9f1b69ee Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Fri, 12 Aug 2022 12:46:01 +0200 Subject: Replace deprecated property --- api/src/start.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/src') diff --git a/api/src/start.ts b/api/src/start.ts index 9ba198e7..98beb1fa 100644 --- a/api/src/start.ts +++ b/api/src/start.ts @@ -13,7 +13,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. -- cgit 1.5.1