[TIL_200628] UID로 Data 작성자 검증하기
오늘 배운 것
UID 활용
post_article(), post_comment() 업데이트
- post_comment() 시 comment data에 uid 추가
- article, comment의 uid와 일치하는 user만
수정/삭제 가능
내일 배울 것
UID 활용
중복 추천 방지 기능
- article, comment의 추천 수 측정 방식 보완
- 기존: 0 + 1
- 보완: upvote_uid_list.length()
Update sign-up page
sign up 시 user data에 추가 info(countries_interest, fields_interest etc.) post
선택된 다중 checkbox의 values를 Array 형태로 저장하여 server로 넘겨주기
db.users 업데이트