Replace deprecated property

This commit is contained in:
TheArcaneBrony
2022-08-12 12:46:01 +02:00
committed by Madeline
parent 3c7efd6503
commit f13082da57
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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();