fix: normalize thumbanils

This commit is contained in:
Sebastian Rindom
2021-04-12 22:37:12 +02:00
parent 37ab52b195
commit 26e7f20306

View File

@@ -685,8 +685,16 @@ class SendGridService extends NotificationService {
relations: ["product"],
})
let thumb
if (variant.product.thumbnail) {
thumb = this.normalizeThumbUrl_(variant.product.thumbnail)
}
return {
product: variant.product,
product: {
...variant.product,
thumbnail: thumb,
},
variant,
variant_id,
emails,