From 7b34f8836c064ba65a54bda963c2db1b68fb73f9 Mon Sep 17 00:00:00 2001 From: "Y.H LIEN" <85728908+LIEN-YUHSIANG@users.noreply.github.com> Date: Fri, 13 Oct 2023 00:52:16 +0900 Subject: [PATCH] feat: refinesyncimgs3 (#347) * chore: fix sync imgs * chore: fix sync imgs2 * chore: fix sync imgs3 * chore: fix sync imgs5 --- src/lambda/sync-image/index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lambda/sync-image/index.py b/src/lambda/sync-image/index.py index 1f6b6fba8..53e2cff16 100644 --- a/src/lambda/sync-image/index.py +++ b/src/lambda/sync-image/index.py @@ -34,5 +34,8 @@ def handler(event, context): # Get event payload and get imgs information key = event['Records'][0]['s3']['object']['key'] print(key) # Try out the code + board_id, ads_id = key.split('/') + print(board_id, ads_id) + return post_imgskey(key)