From 9c081bda6a99db113bf018765f2ea27940051cd3 Mon Sep 17 00:00:00 2001 From: Jason Park Date: Sun, 24 Sep 2023 19:31:34 +0900 Subject: [PATCH] chore: fixing typo --- src/lambda/test-get-single-thread/index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lambda/test-get-single-thread/index.py b/src/lambda/test-get-single-thread/index.py index ee49dba20..bb7eb4c73 100644 --- a/src/lambda/test-get-single-thread/index.py +++ b/src/lambda/test-get-single-thread/index.py @@ -56,15 +56,15 @@ def get_single_thread(board_id, thread_id, uid=""): item['user_liked'] = uid in item.get('likes', []) item['total_likes'] = len(item.get('likes', [])) - if "object_key" in item: + if "obj_key" in item: bucket_name = bucket - presigned_url = generate_url(bucket_name, item["object_key"]) + presigned_url = generate_url(bucket_name, item["obj_key"]) if presigned_url: item["url"] = presigned_url item.pop('uid', None) item.pop('likes', None) - item.pop('object_key', None) + item.pop('obj_key', None) body = JsonPayloadBuilder().add_status( True).add_data(item).add_message('').compile()