Skip to content

Commit

Permalink
chore: fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonNotJson committed Sep 24, 2023
1 parent fe74aad commit 9c081bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lambda/test-get-single-thread/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9c081bd

Please sign in to comment.