Skip to content

Commit

Permalink
Move fetch into separate service, add error handling, don't log every…
Browse files Browse the repository at this point in the history
…thing for some objects.
  • Loading branch information
mkreuzkam-cap committed Nov 15, 2024
1 parent 3da994a commit d984ac3
Show file tree
Hide file tree
Showing 9 changed files with 625 additions and 473 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 d984ac3

Please sign in to comment.