fix: update all contentful

This commit is contained in:
Sebastian Rindom committed 2021-03-26 15:11:37 +01:00
1 parent 5fb40aaac7
commit 806918a10e
1 file changed
+5
@@ -449,10 +449,15 @@ class ContentfulService extends BaseService {
"options",
]
// Update came directly from product variant service so only act on a couple
// of fields. When the update comes from the product we want to ensure
// references are set up correctly so we run through everything.
if (variant.fields) {
const found = variant.fields.find((f) => updateFields.includes(f))
if (!found) {
return
}
}
try {
// const ignoreIds = (await this.getIgnoreIds_("product_variant")) || []