From 035ff444ccd8238d62ad6c84ff752423d2b86a09 Mon Sep 17 00:00:00 2001 From: Nicholas Zuber Date: Wed, 7 Nov 2018 19:54:59 -0500 Subject: [PATCH] Adjust algorithm --- src/pages/Notifications/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/Notifications/index.js b/src/pages/Notifications/index.js index c765480..fd0784d 100644 --- a/src/pages/Notifications/index.js +++ b/src/pages/Notifications/index.js @@ -29,7 +29,7 @@ const PER_PAGE = 15; * * - MENTION -> 8 * - ASSIGN -> 14 - * - REVIEW_REQUESTED -> 20 + * - REVIEW_REQUESTED -> 30 * - SUBSCRIBED -> 3 * - COMMENT -> 3 * - AUTHOR -> 10 @@ -97,13 +97,13 @@ function badgesOf (notification) { }; const scoreOfReason = { - [Reasons.ASSIGN]: 14, + [Reasons.ASSIGN]: 18, [Reasons.AUTHOR]: 10, - [Reasons.MENTION]: 8, + [Reasons.MENTION]: 12, [Reasons.OTHER]: 2, - [Reasons.REVIEW_REQUESTED]: 20, + [Reasons.REVIEW_REQUESTED]: 30, [Reasons.SUBSCRIBED]: 3, - [Reasons.COMMENT]: 3, + [Reasons.COMMENT]: 6, }; const decorateWithScore = notification => ({