You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixesvendure-ecommerce#3130
Update the order service and resolver to include the `lines.featuredAsset` relation.
* **Order Service**
- Add `lines.featuredAsset` to the relations array in the `findOne` method in `packages/core/src/service/services/order.service.ts`.
* **Order Resolver**
- Add `lines.featuredAsset` to the relations array in the `order` query in `packages/core/src/api/resolvers/admin/order.resolver.ts`.
I think this change break image links in order confirmation email - e3d6c21#diff-ddc432c4392054b0d16b826194ca9e408576cee61292c9176f678919af6deb6fL1667
Standard order confirmation template expects order.lines.featuredAsset, but it is not loaded as relations in changed code
featuredAsset
const order = await this.findOne(
ctx,
orderId,
relations ?? [
'lines',
'lines.productVariant',
'lines.productVariant.productVariantPrices',
'shippingLines',
'surcharges',
'customer',
],
);
The text was updated successfully, but these errors were encountered: