Skip to content

Commit 0886ae0

Browse files
committed
fix: should retry handling error as default
1 parent 08e062f commit 0886ae0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/common/src/attachments/SyncingService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class SyncingService {
8686
hasSynced: true
8787
};
8888
} catch (error) {
89-
const shouldRetry = this.errorHandler?.onUploadError(attachment, error) ?? false;
89+
const shouldRetry = this.errorHandler?.onUploadError(attachment, error) ?? true;
9090
if (!shouldRetry) {
9191
return {
9292
...attachment,
@@ -119,7 +119,7 @@ export class SyncingService {
119119
localUri: localUri
120120
};
121121
} catch (error) {
122-
const shouldRetry = this.errorHandler?.onDownloadError(attachment, error) ?? false;
122+
const shouldRetry = this.errorHandler?.onDownloadError(attachment, error) ?? true;
123123
if (!shouldRetry) {
124124
return {
125125
...attachment,
@@ -154,7 +154,7 @@ export class SyncingService {
154154
localUri: null
155155
};
156156
} catch (error) {
157-
const shouldRetry = this.errorHandler?.onDeleteError(attachment, error) ?? false;
157+
const shouldRetry = this.errorHandler?.onDeleteError(attachment, error) ?? true;
158158
if (!shouldRetry) {
159159
return {
160160
...attachment,

0 commit comments

Comments
 (0)