Like, dislike, favourite buttons don't save to the DB
Like, dislike, favourite buttons don't save to the DB

Hmm I must have broken something. Will have a look tomorrow.
I am debugging it and it records in the DB but doesn’t retrieve it for some reason. If I find out will email you.
From: Lee [mailto:[email protected]] Sent: Thursday 22 March 2018 15:19 To: YodasMyDad/mvcforum [email protected] Cc: BaiMangal [email protected]; Author [email protected] Subject: Re: [YodasMyDad/mvcforum] Like, dislike, favourite buttons don't save to the DB (#231)
Hmm I must have broken something. Will have a look tomorrow.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/YodasMyDad/mvcforum/issues/231#issuecomment-375344678, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGVIsXtyEw88PV1JCa86XNHhDC_lbs_Vks5tg8D7gaJpZM4S3JQo.
The fixes required to solve this issue are very small.
- In
VoteService.csthe votes were not being grouped by post then by topic. Instead They were being grouped by post then by post again. - In
TopicController.csthe starting post was never added to the list of posts that the votes should be retrieved for, therefore they were not.
P,s. I have never done a merge request before so I don't know how to add this fix to the repo @YodasMyDad
Thanks