From b0f1e4ab55ae1c34322b8ddbba787531c7be007f Mon Sep 17 00:00:00 2001 From: Justin Chang Date: Wed, 2 Aug 2023 14:17:44 -0700 Subject: [PATCH] add cdn prefix --- 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); }