From 97cd02096611c81fdf0f33879c4852fea3d901df Mon Sep 17 00:00:00 2001 From: Utsab Chowdhury Date: Tue, 11 Jun 2024 14:19:34 +0530 Subject: [PATCH] chore: minor refactot for ga4_v2 --- src/v0/destinations/ga4_v2/transform.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v0/destinations/ga4_v2/transform.ts b/src/v0/destinations/ga4_v2/transform.ts index b42d163073..76adc00e00 100644 --- a/src/v0/destinations/ga4_v2/transform.ts +++ b/src/v0/destinations/ga4_v2/transform.ts @@ -8,8 +8,6 @@ export function process(event: ProcessorTransformationRequest) { const { message, destination } = event; const { Config } = destination; - basicConfigvalidaiton(Config); - const eventPayload = message as RudderStackEvent; if (!eventPayload.type) { @@ -20,6 +18,8 @@ export function process(event: ProcessorTransformationRequest) { return ga4Process(event); } + basicConfigvalidaiton(Config); + // custom mappings flow return handleCustomMappings(message, Config); }