mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 17:32:30 +00:00
Replace deprecated property
This commit is contained in:
1 parent
ac74a2cec4
commit
0ab0a6ff16
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user