From ca1eff8f503bc7c2e3e9445e74d8703f82d09aeb Mon Sep 17 00:00:00 2001 From: Satyam Rahtor Date: Sun, 12 May 2024 11:29:00 +0530 Subject: [PATCH] returnurl should be url --- backend/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/index.js b/backend/index.js index a09fb1e..b23ce57 100644 --- a/backend/index.js +++ b/backend/index.js @@ -34,7 +34,7 @@ app.get("/search", async (req, res) => { response.data.data.results.length > 0 ) { const musicArray = response.data.data.results.map((result) => ({ - returnurl: result.downloadUrl[4]?.url, + url: result.downloadUrl[4]?.url||'', name: result.name||'', year: result.year||'', artist: result.artists.primary[0]?.name.replace(/&/g, '&') || "",