Skip to content

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
mgpsp committed Jun 6, 2018
1 parent ced0a84 commit e1d32c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controllers/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const getRankedPosts = function (projectUrisArray, callback, userUri, nextPositi
let projectInteractions = getProjectInteractions(projectInteractionsArray, post.projectURI) / maxs.interactions;
// let postType = post.postType;
let timeScore = getTimeScore(post.created, now) / maxs.time;
return shares * 0.35 + comments * 0.25 + likes * 0.1 + projectInteractions * 0.15 + timeScore * 0.15;
return shares * 0.35 + comments * 0.25 + projectInteractions * 0.2 + likes * 0.1 + timeScore * 0.1;
};
if (projectUrisArray && projectUrisArray.length > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion src/models/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Post.prototype.updateTimestamp = function (callback)
return db.timeline_post.destroy({
where: {
postURI: self.postURI,
type: "unranked"
type: "ranked"
}
}).then(() => {
return callback(null);
Expand Down

0 comments on commit e1d32c6

Please sign in to comment.