Skip to content

Commit

Permalink
feat: added comment count to post thread
Browse files Browse the repository at this point in the history
  • Loading branch information
LIEN-YUHSIANG committed Sep 17, 2023
1 parent 1f991fd commit 30c438c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@types/pluralize": "0.0.29",
"@typescript-eslint/eslint-plugin": "5.59.6",
"@typescript-eslint/parser": "5.59.6",
"aws-cdk-lib": "2.74.0",
"aws-cdk-lib": "^2.74.0",
"constructs": "10.1.312",
"esbuild": "^0.17.0",
"eslint": "8.38.0",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/lambda/post-thread/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def post_thread(board_id, thread, uid):
"group_id": thread["group_id"],
"univ_id": thread["univ_id"],
"views": 0,
"comment_count": 0,
"new_comment": False
}

table.put_item(Item=thread_item)
Expand Down

0 comments on commit 30c438c

Please sign in to comment.