From 7e8bb10eddaad0b202823a3c3b60d4cae41f5cb3 Mon Sep 17 00:00:00 2001 From: "Y.H LIEN" <85728908+LIEN-YUHSIANG@users.noreply.github.com> Date: Fri, 13 Oct 2023 01:02:51 +0900 Subject: [PATCH] feat: refinesyncimgs (#348) * chore: fix sync imgs * chore: fix sync imgs2 * chore: fix sync imgs3 * chore: fix sync imgs5 * fix: syncimgsneo --- src/lambda/sync-image/index.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lambda/sync-image/index.py b/src/lambda/sync-image/index.py index 53e2cff16..c3652bc01 100644 --- a/src/lambda/sync-image/index.py +++ b/src/lambda/sync-image/index.py @@ -14,9 +14,9 @@ def post_imgskey(key): # Create new item in the dynamoDB item = { - 'board_id': {board_id}, - 'ads_id': {ads_id}, - 'timestamp': {dt_now} + 'board_id': board_id, + 'ads_id': ads_id, + 'timestamp': dt_now, } table.put_item( @@ -37,5 +37,4 @@ def handler(event, context): board_id, ads_id = key.split('/') print(board_id, ads_id) - return post_imgskey(key)