From d72dcc0868caa1a999d98f945d166b5a87f55227 Mon Sep 17 00:00:00 2001 From: DeveloperSteve Date: Mon, 20 May 2024 12:26:37 +1000 Subject: [PATCH] resolved in index.js and also changes --- .gitignore | 1 - src/index.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index cc78e2c..c6bba59 100644 --- a/.gitignore +++ b/.gitignore @@ -128,4 +128,3 @@ dist .yarn/build-state.yml .yarn/install-state.gz .pnp.* -node_modules diff --git a/src/index.js b/src/index.js index c1f3987..5a39245 100644 --- a/src/index.js +++ b/src/index.js @@ -69,7 +69,7 @@ app.post("/", (req, res) => { .split("\n") .find((line) => line.includes("open /tmp")) .trim(); - const cidFromPath = openLine.split("/").pop(); + const cidFromPath = openLine.split("/").pop().trim(); const url = stdout .split("\n")