Skip to content

Commit

Permalink
fix: inject-comments (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
LIEN-YUHSIANG authored Nov 9, 2023
1 parent 6f49ba8 commit 8d3418f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lambda/inject-comments/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def fetch_top_thread():
# make all itmes sort in thread__id, which mean sort in created time in our case.
IndexName='UnivIDbyThreadIDIndex',
KeyConditionExpression=Key('univ_id').eq(univ_id),
ProjectionExpression="group_id, board_id, body", # This will reduce the information that is reuturned, but PK, SK is always returned.
ProjectionExpression="thread_id, group_id, board_id, body", # This will reduce the information that is reuturned, but PK, SK is always returned.
Limit=1,
ScanIndexForward=False
)
Expand Down

0 comments on commit 8d3418f

Please sign in to comment.