diff --git a/src/v0/destinations/clevertap/transform.js b/src/v0/destinations/clevertap/transform.js index 5c1e28c086..7bbc4dc59c 100644 --- a/src/v0/destinations/clevertap/transform.js +++ b/src/v0/destinations/clevertap/transform.js @@ -419,7 +419,7 @@ const processRouterDest = (inputs, reqMetadata) => { batchedEvents.forEach((batch) => { const batchedRequest = generateClevertapBatchedPayload(batch.events, batch.destination); batchResponseList.push( - getSuccessRespEvents(batchedRequest, batch.metadata, batch.destination), + getSuccessRespEvents(batchedRequest, batch.metadata, batch.destination) ); }); } diff --git a/src/v0/util/index.js b/src/v0/util/index.js index a8f56ddbf3..7ed0d1a877 100644 --- a/src/v0/util/index.js +++ b/src/v0/util/index.js @@ -372,7 +372,7 @@ const hashToSha256 = (value) => sha256(value); // Check what type of gender and convert to f or m const getFbGenderVal = (gender) => { - if (typeof gender !== 'string') { + if (typeof (gender) !== 'string') { return null; } if ( @@ -2050,11 +2050,11 @@ const getAuthErrCategoryFromStCode = (status) => { return ''; }; -const validateEventType = (event) => { - if (!event || typeof event !== 'string') { - throw new InstrumentationError('Event is a required field and should be a string'); +const validateEventType = event => { + if(!event || typeof event !== "string") { + throw new InstrumentationError("Event is a required field and should be a string"); } -}; +} // ======================================================================== // EXPORTS // ========================================================================