@opexa/portal-sdk 0.59.117 → 0.59.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2628,7 +2628,8 @@ var Transformer = class {
2628
2628
  return compact(o);
2629
2629
  }
2630
2630
  game(data) {
2631
- const images = [data.customImage, data.image].filter(Boolean).map((url) => {
2631
+ const fallback = `${ENDPOINTS.production.static}/images/${data.provider.toLowerCase()}/thumbnail-${ObjectId.from(data.id).toString("hex")}.webp?cache_id=${IMAGE_CACHE_ID}`;
2632
+ const images = [data.customImage, data.image, fallback].filter(Boolean).map((url) => {
2632
2633
  invariant(url);
2633
2634
  return url.includes("?") ? `${url}&cache_id=${IMAGE_CACHE_ID}` : `${url}?cache_id=${IMAGE_CACHE_ID}`;
2634
2635
  });