diff --git a/src/cdk/v2/destinations/reddit/procWorkflow.yaml b/src/cdk/v2/destinations/reddit/procWorkflow.yaml index 652ee2f784..e6c05ef86d 100644 --- a/src/cdk/v2/destinations/reddit/procWorkflow.yaml +++ b/src/cdk/v2/destinations/reddit/procWorkflow.yaml @@ -60,9 +60,9 @@ steps: template: | const customFields = .message.().({ "currency": .properties.currency, - "value": .properties.revenue !== undefined ? Number(.properties.revenue) : undefined, + "value_decimal": .properties.revenue !== undefined ? Number(.properties.revenue) : undefined, "item_count": (Array.isArray(.properties.products) && .properties.products.length) || (.properties.itemCount && Number(.properties.itemCount)), - "value_decimal": .properties.revenue !== undefined ? Number(.properties.revenue)/100 : undefined, + "value": .properties.revenue !== undefined ? Number(.properties.revenue)*100 : undefined, "conversion_id": .properties.conversionId || .messageId, }); $.removeUndefinedAndNullValues(customFields) diff --git a/test/integrations/destinations/reddit/processor/data.ts b/test/integrations/destinations/reddit/processor/data.ts index 09bbd3e587..f3cd4ebf7b 100644 --- a/test/integrations/destinations/reddit/processor/data.ts +++ b/test/integrations/destinations/reddit/processor/data.ts @@ -128,8 +128,8 @@ export const data = [ event_metadata: { item_count: 2, currency: 'USD', - value: 15, - value_decimal: 0.15, + value: 1500, + value_decimal: 15, products: [ { id: '123', diff --git a/test/integrations/destinations/reddit/router/data.ts b/test/integrations/destinations/reddit/router/data.ts index 1ce7d24abf..e71b69b1fc 100644 --- a/test/integrations/destinations/reddit/router/data.ts +++ b/test/integrations/destinations/reddit/router/data.ts @@ -236,8 +236,8 @@ export const data = [ event_metadata: { item_count: 2, currency: 'USD', - value: 15, - value_decimal: 0.15, + value: 1500, + value_decimal: 15, products: [ { id: '123',