From fd7e937b319b57458bd64662137e8526f4c42b1a Mon Sep 17 00:00:00 2001 From: Justin Chang <37165464+just-in-chang@users.noreply.github.com> Date: Wed, 2 Aug 2023 16:18:43 -0700 Subject: [PATCH] [NFT Metadata Crawler] Add CDN Prefix to CDN JSON/URI (#9441) --- ecosystem/nft-metadata-crawler-parser/src/worker.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ecosystem/nft-metadata-crawler-parser/src/worker.rs b/ecosystem/nft-metadata-crawler-parser/src/worker.rs index cdf8f94d98bd8..5a23dfcc52200 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/worker.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/worker.rs @@ -248,6 +248,7 @@ impl Worker { let cdn_json_uri = write_json_to_gcs(self.config.bucket.clone(), self.token_data_id.clone(), json) .await + .map(|value| format!("{}{}", self.config.cdn_prefix, value)) .ok(); self.model.set_cdn_json_uri(cdn_json_uri); } @@ -305,6 +306,7 @@ impl Worker { image, ) .await + .map(|value| format!("{}{}", self.config.cdn_prefix, value)) .ok(); self.model.set_cdn_image_uri(cdn_image_uri); } @@ -365,6 +367,7 @@ impl Worker { animation, ) .await + .map(|value| format!("{}{}", self.config.cdn_prefix, value)) .ok(); self.model.set_cdn_animation_uri(cdn_animation_uri); }