A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
core: use RequestFetchV4 method (#9873)
01zulfi0476d3652a96
diff --git a/packages/core/src/api/sync/index.ts b/packages/core/src/api/sync/index.tsindex d0fef7eec..7a8715a5a 100644--- a/packages/core/src/api/sync/index.ts+++ b/packages/core/src/api/sync/index.ts@@ -237,16 +237,16 @@ export class Sync {await this.checkConnection();try {- await this.connection?.invoke("RequestFetchV3", deviceId);+ await this.connection?.invoke("RequestFetchV4", deviceId);} catch (error) {if (error instanceof Error &&error.message.includes("HubException: Method does not exist")) {this.logger.warn(- "RequestFetchV3 failed, falling back to RequestFetchV2"+ "RequestFetchV4 failed, falling back to RequestFetchV3");- await this.connection?.invoke("RequestFetchV2", deviceId);+ await this.connection?.invoke("RequestFetchV3", deviceId);} else throw error;}