Skip to content

Commit b873c7e

Browse files
committed
Fix typo
1 parent ff0ec2f commit b873c7e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ Resources:
744744
items:
745745
type: 'string'
746746
enum:
747-
- "comment_id01"
747+
- "comment_id"
748748
security:
749749
- cognitoUserPool: []
750750
x-amazon-apigateway-integration:

src/handlers/me/comments/likes/create/me_comments_likes_create.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def validate_params(self):
2828
def exec_main_proc(self):
2929
user_id = self.event['requestContext']['authorizer']['claims']['cognito:username']
3030

31-
comment_liked_user_table = self.dynamodb.Table(os.environ['COMMENT_TABLE_NAME'])
32-
comment = comment_liked_user_table.get_item(Key={'comment_id': self.params['comment_id']}).get('Item')
31+
comment_table = self.dynamodb.Table(os.environ['COMMENT_TABLE_NAME'])
32+
comment = comment_table.get_item(Key={'comment_id': self.params['comment_id']}).get('Item')
3333

3434
comment_liked_user_table = self.dynamodb.Table(os.environ['COMMENT_LIKED_USER_TABLE_NAME'])
3535
comment_liked_user = {

0 commit comments

Comments
 (0)