Skip to content

Commit

Permalink
new interval for ping set
Browse files Browse the repository at this point in the history
  • Loading branch information
clownclown-tech committed Nov 6, 2024
1 parent c0546d4 commit 81c0eb9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ setInterval(() => {
setInterval(() => {
console.log("ping2");
https.get("https://rent-a-bike.fly.dev");
}, 6 * 60 * 1000);
}, 3 * 60 * 1000);

setInterval(() => {
console.log("ping3");
https.get("https://plain-scanner.fly.dev");
}, 5 * 60 * 1000);
}, 3 * 60 * 1000);


setInterval(() => {
console.log("ping3");
https.get("https://medicalappointmentapp.fly.dev");
}, 2 * 60 * 1000);





Expand All @@ -28,8 +36,8 @@ setInterval(() => {



// const db = new sqlite3.Database("production.sqlite");
const db = new sqlite3.Database("/mnt/highscores/production.sqlite");
const db = new sqlite3.Database("production.sqlite");
// const db = new sqlite3.Database("/mnt/highscores/production.sqlite");

// Create a highscores table if it doesn't exist
db.serialize(() => {
Expand Down

0 comments on commit 81c0eb9

Please sign in to comment.