forgot the other one
This commit is contained in:
@@ -50,7 +50,7 @@ function saveUptimeObject(): void{
|
|||||||
saveTimeout = setTimeout(()=>{
|
saveTimeout = setTimeout(()=>{
|
||||||
const data = Object.fromEntries(uptimeObject);
|
const data = Object.fromEntries(uptimeObject);
|
||||||
fs.writeFile(
|
fs.writeFile(
|
||||||
path.join(__dirname, "..", "uptime.json"),
|
process.env.UPTIMEJSON||path.join(__dirname, "..", "uptime.json"),
|
||||||
JSON.stringify(data),
|
JSON.stringify(data),
|
||||||
error=>{
|
error=>{
|
||||||
if(error){
|
if(error){
|
||||||
|
Reference in New Issue
Block a user