Skip to content

Commit

Permalink
fix(fulfillment_product): aggregate countries from sender and recipient
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Feb 24, 2025
1 parent 0d62f73 commit 4944b18
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/services/fulfillment_product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,11 @@ export class FulfillmentProductService
),
aggregation.items.map(
item => item?.sender?.address?.id
).filter(a => a),
),
aggregation.items.map(
item => item?.recipient?.address?.id
).filter(a => a),
),
),
).filter(a => a),
container: 'addresses',
entity: 'Address',
},
Expand All @@ -382,6 +382,12 @@ export class FulfillmentProductService
aggregation.addresses.all.map(
a => a.country_id
),
aggregation.items.map(
item => item?.sender?.address?.country_id
),
aggregation.items.map(
item => item?.recipient?.address?.country_id
)
),
container: 'countries',
entity: 'Country',
Expand Down

0 comments on commit 4944b18

Please sign in to comment.