From c2206d6770069f56c2ed1bb06f497282252e2650 Mon Sep 17 00:00:00 2001 From: kobanyan Date: Thu, 22 Apr 2021 19:23:58 +0900 Subject: [PATCH] fix: replace duplicated file --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 88a2632..3e36652 100644 --- a/index.js +++ b/index.js @@ -321,6 +321,7 @@ class ServerlessS3Sync { } // to avoid Unexpected Parameter error delete params['OnlyForEnv']; + filesToSync = filesToSync.filter(e => e.name !== match); filesToSync.push({name: match, params}); }); });