From ec586a66700c5f2b7b330b2853a9bb3747e0e040 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Molteni Date: Tue, 9 Apr 2024 12:08:30 -0300 Subject: [PATCH] fix: fix adding extra contents into url (#76) --- consumer-server/src/logic/run-conversion.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consumer-server/src/logic/run-conversion.ts b/consumer-server/src/logic/run-conversion.ts index 0f026982..3cacd51e 100644 --- a/consumer-server/src/logic/run-conversion.ts +++ b/consumer-server/src/logic/run-conversion.ts @@ -90,7 +90,8 @@ export async function runConversion( if (!contentServerUrl.endsWith('/')) contentServerUrl += '/' // TODO: Temporal hack, we need to standardize this - if (contentServerUrl !== 'https://sdk-team-cdn.decentraland.org/ipfs/') { + if (contentServerUrl !== 'https://sdk-team-cdn.decentraland.org/ipfs/' && + !contentServerUrl.endsWith('contents/')) { contentServerUrl += 'contents/' }