Commit Graph

4 Commits

Author SHA1 Message Date
Vartan Benohanian
c3b2ab00c2 Unexport post/comment service. Rename github workflow
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-08-02 19:04:53 -04:00
Vartan Benohanian
2ea893ab16 Use individual structs for services
Made it this way so that I can use the PostAndCommentService as a child
of the PostService and CommentService.

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-07-21 23:05:24 -04:00
Vartan Benohanian
5ab24a1e32 Add methods to enable/disable contest mode for posts
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-07-16 19:07:19 -04:00
Vartan Benohanian
ec7e8abe8e Create PostAndCommentService, holds common methods
Some functionality such as saving, voting, deleting, etc. is common to
both posts and comments, so this service will hold such methods.

Tweaked the separate post/comment services accordingly. Fixed tests.

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
2020-07-13 23:05:24 -04:00