Skip to content

Commit

Permalink
chore: deleting condition expression
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonNotJson committed Sep 17, 2023
1 parent 476602e commit a97abc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lambda/patch-thread/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def patch_thread(board_id, uid, thread_id, thread, action):
"thread_id": thread_id,
},
UpdateExpression='DELETE likes :uid',
ConditionExpression='attribute_exists(likes) AND contains(likes, :uid)',
# ConditionExpression='attribute_exists(likes) AND contains(likes, :uid)',
ExpressionAttributeValues={
':uid': [uid]
':uid': {uid}
},
)
except Exception as e:
Expand Down

0 comments on commit a97abc1

Please sign in to comment.