Changeset fcc3080 for src/FinkiChattery/FinkiChattery.Api/ApplicationServices/Questioning/EventHandlers/UpdateAnswerVotesEventHandler.cs
- Timestamp:
- 11/14/21 13:58:42 (3 years ago)
- Branches:
- dev
- Children:
- f3c4950
- Parents:
- e071d30
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/FinkiChattery/FinkiChattery.Api/ApplicationServices/Questioning/EventHandlers/UpdateAnswerVotesEventHandler.cs
re071d30 rfcc3080 30 30 case VoteType.Upvote: 31 31 answer.VotesCount++; 32 33 if (notification.VoteAlreadyExists) 34 { 35 answer.VotesCount++; 36 } 32 37 break; 33 38 case VoteType.Downvote: 34 39 answer.VotesCount--; 40 if (notification.VoteAlreadyExists) 41 { 42 answer.VotesCount--; 43 } 35 44 break; 36 45 }
Note:
See TracChangeset
for help on using the changeset viewer.