Skip to content

Commit 24a2a30

Browse files
author
3aa49ec6bfc910647fa1c5a013e48eef
committed
Fixing connectivity test
1 parent 54316f0 commit 24a2a30

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

src/worker/package-lock.json

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/worker/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"sqlite3": "^5.1.6"
2121
},
2222
"devDependencies": {
23+
"@types/ping": "^0.4.4",
2324
"tsup": "^8.0.1",
2425
"typescript": "^5.3.3"
2526
}

src/worker/src/modules/network.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export const checkIfArchiveIsReachable = async () => {
1313
const config = getRcloneConfig()
1414
const connectivityTestType = getConnectivityTestType(config)
1515

16+
console.log('Performing connectivity test for:', connectivityTestType)
17+
1618
if (connectivityTestType === ConnectivityTestType.internetConnected) {
1719
return await testInternetConnected()
1820
}
@@ -54,8 +56,8 @@ const testInternetConnected = async () => {
5456
}
5557

5658
enum ConnectivityTestType {
57-
pingHost = "pingHost",
58-
internetConnected = "internetConnected",
59+
pingHost,
60+
internetConnected,
5961
}
6062

6163
const getConnectivityTestType = (config: any) => {

0 commit comments

Comments
 (0)