fix: normalize thumbanils
This commit is contained in:
1 parent
37ab52b195
commit
26e7f20306
1 file changed
+9
-1
@@ -685,8 +685,16 @@ class SendGridService extends NotificationService {
|
|||||||
relations: ["product"],
|
relations: ["product"],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
let thumb
|
||||||
|
if (variant.product.thumbnail) {
|
||||||
|
thumb = this.normalizeThumbUrl_(variant.product.thumbnail)
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
product: variant.product,
|
product: {
|
||||||
|
...variant.product,
|
||||||
|
thumbnail: thumb,
|
||||||
|
},
|
||||||
variant,
|
variant,
|
||||||
variant_id,
|
variant_id,
|
||||||
emails,
|
emails,
|
||||||
|
|||||||
Reference in new issue
Block a user