Skip to content

Commit

Permalink
chore: source handler based on version
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayteki95 committed Dec 7, 2024
1 parent d3d3543 commit b674611
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export class MiscService {
}

public static getSourceHandler(source: string, version: string) {
if (version === 'v2') {
return require(`../sources/${source}/transform`);
}
return require(`../${version}/sources/${source}/transform`);
}

Expand Down

0 comments on commit b674611

Please sign in to comment.