Skip to content

Commit

Permalink
fix: default likes to empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
jkklapp committed Jun 6, 2022
1 parent 19d3438 commit 95b9d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/posts/posts.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class PostsController {

return {
...newPost,
likes: newPost.likes.length,
likes: 0,
likedByMe: false,
userName,
};
Expand Down

0 comments on commit 95b9d7f

Please sign in to comment.