From 8de20102adc851fbf36cc0fa5b1e5c055d9db264 Mon Sep 17 00:00:00 2001 From: azara Date: Fri, 23 Jun 2023 18:36:13 +0900 Subject: [PATCH] =?UTF-8?q?key=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cdk/lib/challenge4/api/router/routes/functions/listFile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdk/lib/challenge4/api/router/routes/functions/listFile.ts b/cdk/lib/challenge4/api/router/routes/functions/listFile.ts index 0d86a6c..3a96b74 100644 --- a/cdk/lib/challenge4/api/router/routes/functions/listFile.ts +++ b/cdk/lib/challenge4/api/router/routes/functions/listFile.ts @@ -44,7 +44,7 @@ const getListObjects = async ( return content.Key?.split('/').length === 1 || (content.Key?.split('/').length === 2 && content.Key?.split('/')[1] !== ''); }) .map((content) => { - return content.Key; + return content.Key?.split('/')[1]; }); return {