diff --git a/packages/api/src/proc/databaseConnectionProcess.js b/packages/api/src/proc/databaseConnectionProcess.js index ca652b5c6..96de90996 100644 --- a/packages/api/src/proc/databaseConnectionProcess.js +++ b/packages/api/src/proc/databaseConnectionProcess.js @@ -335,11 +335,11 @@ function start() { setInterval(() => { const time = new Date().getTime(); - if (time - lastPing > 40_000) { + if (time - lastPing > 40 * 1000) { console.log('Database connection not alive, exiting'); process.exit(0); } - }, 10_000); + }, 10 * 1000); process.on('message', async message => { if (handleProcessCommunication(message)) return; diff --git a/packages/api/src/proc/serverConnectionProcess.js b/packages/api/src/proc/serverConnectionProcess.js index 43cbcca97..a700b026b 100644 --- a/packages/api/src/proc/serverConnectionProcess.js +++ b/packages/api/src/proc/serverConnectionProcess.js @@ -111,11 +111,11 @@ function start() { setInterval(() => { const time = new Date().getTime(); - if (time - lastPing > 40_000) { + if (time - lastPing > 40 * 1000) { console.log('Server connection not alive, exiting'); process.exit(0); } - }, 10_000); + }, 10 * 1000); process.on('message', async message => { if (handleProcessCommunication(message)) return; diff --git a/packages/api/src/proc/sessionProcess.js b/packages/api/src/proc/sessionProcess.js index 41d8502ed..4b7d140fe 100644 --- a/packages/api/src/proc/sessionProcess.js +++ b/packages/api/src/proc/sessionProcess.js @@ -296,11 +296,11 @@ function start() { setInterval(() => { const time = new Date().getTime(); - if (time - lastPing > 25_000) { + if (time - lastPing > 25 * 1000) { console.log('Session not alive, exiting'); process.exit(0); } - }, 10_000); + }, 10 * 1000); process.on('message', async message => { if (handleProcessCommunication(message)) return; diff --git a/packages/web/src/tabs/QueryDesignTab.svelte b/packages/web/src/tabs/QueryDesignTab.svelte index f11b6e350..9a84f5eab 100644 --- a/packages/web/src/tabs/QueryDesignTab.svelte +++ b/packages/web/src/tabs/QueryDesignTab.svelte @@ -114,7 +114,7 @@ sesid: sessionId, }); } - }, 15_000); + }, 15 * 1000); }); onDestroy(() => { diff --git a/packages/web/src/tabs/QueryTab.svelte b/packages/web/src/tabs/QueryTab.svelte index c2b61eae7..cb4e79958 100644 --- a/packages/web/src/tabs/QueryTab.svelte +++ b/packages/web/src/tabs/QueryTab.svelte @@ -109,7 +109,7 @@ sesid: sessionId, }); } - }, 15_000); + }, 15 * 1000); }); onDestroy(() => { diff --git a/packages/web/src/utility/connectionsPinger.js b/packages/web/src/utility/connectionsPinger.js index 526e1add1..c37b5c8d9 100644 --- a/packages/web/src/utility/connectionsPinger.js +++ b/packages/web/src/utility/connectionsPinger.js @@ -29,12 +29,12 @@ export function subscribeConnectionPingers() { openedConnections.subscribe(value => { doServerPing(value); if (openedConnectionsHandle) window.clearInterval(openedConnectionsHandle); - openedConnectionsHandle = window.setInterval(() => doServerPing(value), 30_000); + openedConnectionsHandle = window.setInterval(() => doServerPing(value), 30 * 1000); }); currentDatabase.subscribe(value => { doDatabasePing(value); if (currentDatabaseHandle) window.clearInterval(currentDatabaseHandle); - currentDatabaseHandle = window.setInterval(() => doDatabasePing(value), 30_000); + currentDatabaseHandle = window.setInterval(() => doDatabasePing(value), 30 * 1000); }); }