Skip to content

Commit

Permalink
Sync Modules does not log errors occuring during the Synchronization (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoenig134 authored Aug 27, 2024
1 parent 1063978 commit 73347e5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/modules/sync/SyncModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ export default class SyncModule extends ConnectorRuntimeModule<SyncModuleConfigu
}

private async sync() {
try {
await this.runtime.getServices().transportServices.account.syncEverything();
} catch (error) {
this.logger.error(error);
}
const result = await this.runtime.getServices().transportServices.account.syncEverything();
if (result.isError) this.logger.error("Sync failed", result.error);

this.syncTimeout = setTimeout(async () => await this.sync(), this.configuration.interval * 1000);
}
Expand Down

0 comments on commit 73347e5

Please sign in to comment.