From b674611f95ce18656168e0bad0eb0f7111c0fcea Mon Sep 17 00:00:00 2001 From: Vinay Teki Date: Sat, 7 Dec 2024 21:15:54 +0530 Subject: [PATCH] chore: source handler based on version --- src/services/misc.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/services/misc.ts b/src/services/misc.ts index 334b54ba17..3efbe617bf 100644 --- a/src/services/misc.ts +++ b/src/services/misc.ts @@ -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`); }