Skip to content

Commit

Permalink
chore(bookmark): change on bookmark feature
Browse files Browse the repository at this point in the history
-when fetching bookmarks, I need more information about the articles like: image, reading time and the time it was created
-I also need the username of an article
[delivers #167553045]
  • Loading branch information
Kabalisa committed Jul 30, 2019
1 parent b0297f1 commit ef0baa4
Show file tree
Hide file tree
Showing 3 changed files with 570 additions and 212 deletions.
4 changes: 1 addition & 3 deletions controllers/article.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,7 @@ class ArticleController {
.status(200)
.send({ message: 'this article has not been shared yet' });
}
const numberOfSharesOnPlatform = await ArticleHelper.numberOfSharesOnPlatform(
shares
);
const numberOfSharesOnPlatform = await ArticleHelper.numberOfSharesOnPlatform(shares);
const facebook = numberOfSharesOnPlatform[0];
const twitter = numberOfSharesOnPlatform[1];
const linkedin = numberOfSharesOnPlatform[2];
Expand Down
Loading

0 comments on commit ef0baa4

Please sign in to comment.