From cf48c0605f608dc318e286b900994284cc68717a Mon Sep 17 00:00:00 2001 From: Dwynr Date: Sun, 17 Nov 2024 00:26:07 +0100 Subject: [PATCH] fix: init http/sync --- package-lock.json | 22 +++++++++++----------- package.json | 6 +++--- src/index.ts | 9 ++++++--- 3 files changed, 20 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index bdcbba6..9e22343 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { "name": "@filen/desktop", - "version": "3.0.28", + "version": "3.0.29", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@filen/desktop", - "version": "3.0.28", + "version": "3.0.29", "license": "AGPLv3", "dependencies": { "@filen/network-drive": "^0.9.28", "@filen/s3": "^0.2.44", "@filen/sdk": "^0.1.176", "@filen/sync": "^0.1.80", - "@filen/web": "^0.1.53", + "@filen/web": "^0.1.54", "@filen/webdav": "^0.2.59", "axios": "^0.28.1", "cors": "^2.8.5", @@ -2185,16 +2185,16 @@ } }, "node_modules/@filen/desktop": { - "version": "3.0.28", - "resolved": "https://registry.npmjs.org/@filen/desktop/-/desktop-3.0.28.tgz", - "integrity": "sha512-fjBi9ZDNunbWsrKozkSqQNMvda+P5L1Q6L/GQI/RgYWO6+KMuRJgD2cRoPs+3J6fQlortF2mkwv68hO2J9EK8Q==", + "version": "3.0.29", + "resolved": "https://registry.npmjs.org/@filen/desktop/-/desktop-3.0.29.tgz", + "integrity": "sha512-qYDuHLy4MlOZjdanXXtYi8aUvf0qxd9kLjEv++0jBBBa19YTiDHpdxhhpUJaxl09IHEhNll47hPc/fxFPuc27Q==", "license": "AGPLv3", "dependencies": { "@filen/network-drive": "^0.9.28", "@filen/s3": "^0.2.44", "@filen/sdk": "^0.1.176", "@filen/sync": "^0.1.80", - "@filen/web": "^0.1.52", + "@filen/web": "^0.1.53", "@filen/webdav": "^0.2.59", "axios": "^0.28.1", "cors": "^2.8.5", @@ -2421,14 +2421,14 @@ } }, "node_modules/@filen/web": { - "version": "0.1.53", - "resolved": "https://registry.npmjs.org/@filen/web/-/web-0.1.53.tgz", - "integrity": "sha512-4mlv7ESQ/iwgGQ3COUZJI3pt+yWq9JGFcP9iQfS16kUwwFR+O2eO4lguApXwIDoS+PsECSb26KBFJqf9+oSzBw==", + "version": "0.1.54", + "resolved": "https://registry.npmjs.org/@filen/web/-/web-0.1.54.tgz", + "integrity": "sha512-bEEy5LBJBXzkkbBhI18PoQ28gaSKOeWlv9wyyX5VDsqOg1GJBXfrgXmvZkdMjXCd/RENlHRGCKBdq0TnLoHteA==", "dependencies": { "@alptugidin/react-circular-progress-bar": "^1.1.2", "@emoji-mart/data": "^1.1.2", "@emoji-mart/react": "^1.1.1", - "@filen/desktop": "^3.0.28", + "@filen/desktop": "^3.0.29", "@filen/network-drive": "^0.9.28", "@filen/sdk": "^0.1.176", "@filen/sync": "^0.1.80", diff --git a/package.json b/package.json index 8fb9047..e488322 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@filen/desktop", - "version": "3.0.28", - "buildNumber": 328, + "version": "3.0.29", + "buildNumber": 329, "description": "Filen Desktop Client", "author": "Filen Cloud Dienste UG (haftungsbeschränkt) ", "main": "dist/index.js", @@ -67,7 +67,7 @@ "@filen/s3": "^0.2.44", "@filen/sdk": "^0.1.176", "@filen/sync": "^0.1.80", - "@filen/web": "^0.1.53", + "@filen/web": "^0.1.54", "@filen/webdav": "^0.2.59", "axios": "^0.28.1", "cors": "^2.8.5", diff --git a/src/index.ts b/src/index.ts index 479dc5a..031d527 100644 --- a/src/index.ts +++ b/src/index.ts @@ -152,13 +152,16 @@ export class FilenDesktop { this.logger.log("info", "Starting sync and http inside worker") - await this.worker.invoke("restartSync") - - await this.worker.invoke("restartHTTP").catch(err => { + this.worker.invoke("restartHTTP").catch(err => { this.logger.log("error", err, "http.start") this.logger.log("error", err) }) + this.worker.invoke("restartSync").catch(err => { + this.logger.log("error", err, "sync.start") + this.logger.log("error", err) + }) + this.logger.log("info", "Started") } catch (e) { this.logger.log("error", e)