Skip to content

Commit

Permalink
EW-1065: Add error handling for fetching of TSP data (#5344)
Browse files Browse the repository at this point in the history
* Move fetch into separate service, add error handling, don't log everything for some objects.
* Handle oauth request error and refactor test.
  • Loading branch information
mkreuzkam-cap authored Nov 19, 2024
1 parent 5678a4a commit 91d4831
Show file tree
Hide file tree
Showing 13 changed files with 822 additions and 552 deletions.
3 changes: 2 additions & 1 deletion apps/server/src/infra/sync/sync.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { TspOauthDataMapper } from './tsp/tsp-oauth-data.mapper';
import { TspSyncService } from './tsp/tsp-sync.service';
import { TspSyncStrategy } from './tsp/tsp-sync.strategy';
import { SyncUc } from './uc/sync.uc';
import { TspFetchService } from './tsp/tsp-fetch.service';

@Module({
imports: [
Expand All @@ -39,7 +40,7 @@ import { SyncUc } from './uc/sync.uc';
SyncUc,
SyncService,
...((Configuration.get('FEATURE_TSP_SYNC_ENABLED') as boolean)
? [TspSyncStrategy, TspSyncService, TspOauthDataMapper]
? [TspSyncStrategy, TspSyncService, TspOauthDataMapper, TspFetchService]
: []),
],
exports: [SyncConsole],
Expand Down
Loading

0 comments on commit 91d4831

Please sign in to comment.