diff --git a/package-lock.json b/package-lock.json index 9d8afa8a..309e7209 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/package.json b/package.json index 045f83a2..9879e874 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/fosscord/fosscord-api#readme", "dependencies": { - "@fosscord/server-util": "^1.3.3", + "@fosscord/server-util": "^1.3.5", "@types/jest": "^26.0.22", "@types/json-schema": "^7.0.7", "ajv": "^8.4.0", diff --git a/src/start.ts b/src/start.ts index 1f069c51..d799c190 100644 --- a/src/start.ts +++ b/src/start.ts @@ -9,7 +9,7 @@ import cluster from "cluster"; import os from "os"; const cores = Number(process.env.threads) || os.cpus().length; -if (cluster.isMaster && process.env.production == "true") { +if (cluster.isMaster && process.env.NODE_ENV == "production") { console.log(`Primary ${process.pid} is running`); // Fork workers.