forgot the other one

This commit is contained in:
MathMan05 2024-11-04 12:15:13 -06:00
parent 040f931745
commit e2cf4d2a2b

View file

@ -50,7 +50,7 @@ function saveUptimeObject(): void{
saveTimeout = setTimeout(()=>{
const data = Object.fromEntries(uptimeObject);
fs.writeFile(
path.join(__dirname, "..", "uptime.json"),
process.env.UPTIMEJSON||path.join(__dirname, "..", "uptime.json"),
JSON.stringify(data),
error=>{
if(error){