ita-social-projects / dokazovi-be

The platform for verified medical speakers and their recommendations.
MIT License
13 stars 11 forks source link

To fix a bug regarding saving a post (article) #389

Closed StanislavKucher closed 3 years ago

StanislavKucher commented 3 years ago

Task description

There is an issue while saving a post that comes to the POST endpoint in the PostController. The saveFromUser method in the PostServiceImpl class doesn't work properly. Having saved a post into DB it should call the updateDirectionsHasPostsStatus method from the directionService in order to update the column "has_posts" int the "directions" DB table yet it doesn't at the moment.

Reproducible: always

To do

    • [ ] to rewrite the saveFromUser method
    • [ ] to rewrite the associated tests

[Estimating]