minor not noteworthy improvements

This commit is contained in:
bignutty 2024-05-23 22:59:35 +02:00
parent eb7a03f971
commit b209c257ec
3 changed files with 6 additions and 7 deletions

View file

@ -8,7 +8,7 @@ const token = process.env.token;
// Get the correct path for each environment type
let client = `./labscore/labscore/client.js`;
if(process.env.environment == "local") client = `./labscore/client.js`
if(process.env.environment === "local") client = `./labscore/client.js`
if(["production","prod","prodnew"].includes(process.env.environment.toLowerCase())) client = `./labscore/labscore/client.js`;
const SHARDS = process.env.SHARDS || 2;
@ -36,7 +36,7 @@ const manager = new ClusterManager(client, token, {
await manager.run();
console.log(`v2 | ready. took ${(Date.now() - time) / 1000}.`)
if(process.env.environment.toLowerCase() == "prod"){
if(process.env.environment.toLowerCase() === "prod"){
let liveDeploy = await superagent.get(`${process.env.PB_MANAGER_HOST}_pbs/v1/GetPbServiceId`)
if(process.env.HOSTNAME !== liveDeploy.body.d){
console.log(`[${process.env.HOSTNAME}] invalid deployment session`)