Skip to content

Commit

Permalink
EW-1055: modified the config to contain the fields in an extended config
Browse files Browse the repository at this point in the history
  • Loading branch information
HKayed committed Nov 27, 2024
1 parent d4955c2 commit 23f2ebf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
8 changes: 8 additions & 0 deletions apps/server/src/infra/sync/strategy/tsp-config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default interface TSPConfig {
TSP_SYNC_SCHOOL_LIMIT: number;
TSP_SYNC_SCHOOL_DAYS_TO_FETCH: number;
TSP_SYNC_DATA_LIMIT: number;
TSP_SYNC_DATA_DAYS_TO_FETCH: number;
TSP_SYNC_MIGRATION_LIMIT: number;
FEATURE_TSP_MIGRATION_ENABLED: boolean;
}
11 changes: 3 additions & 8 deletions apps/server/src/infra/sync/strategy/tsp/tsp-sync.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
export interface TspSyncConfig {
TSP_SYNC_SCHOOL_LIMIT: number;
TSP_SYNC_SCHOOL_DAYS_TO_FETCH: number;
TSP_SYNC_DATA_LIMIT: number;
TSP_SYNC_DATA_DAYS_TO_FETCH: number;
TSP_SYNC_MIGRATION_LIMIT: number;
FEATURE_TSP_MIGRATION_ENABLED: boolean;
}
import TSPConfig from '../tsp-config';

export interface TspSyncConfig extends TSPConfig {}

0 comments on commit 23f2ebf

Please sign in to comment.