Skip to content

Commit

Permalink
fix subgraph test
Browse files Browse the repository at this point in the history
  • Loading branch information
levalleux-ludo committed Jan 25, 2024
1 parent b7c09bb commit ac8127b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/subgraph/src/entities/metadata/product-v1/product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,20 @@ export function saveProductV1ProductOrOverrides(
productOrOverrideObj.get("visuals_images")
);
const metadataImage = convertToString(metadataObj.get("image"));
const savedImageIds = saveProductV1Medias(visuals_images, "IMAGE", metadataImage);
const savedImageIds = saveProductV1Medias(
visuals_images,
"IMAGE",
metadataImage
);
const visuals_videos = convertToObjectArray(
productOrOverrideObj.get("visuals_videos")
);
const animationUrl = convertToString(metadataObj.get("animationUrl"));
const savedVideoIds = saveProductV1Medias(visuals_videos, "VIDEO", animationUrl);

const savedVideoIds = saveProductV1Medias(
visuals_videos,
"VIDEO",
animationUrl
);

const packaging_packageQuantity = convertToString(
productOrOverrideObj.get("packaging_packageQuantity")
Expand Down

0 comments on commit ac8127b

Please sign in to comment.