Commit 89c12e64 authored by soheib's avatar soheib
Browse files

update tag score calculate

parent 1243dcd5
...@@ -102,7 +102,7 @@ export class ScoreService { ...@@ -102,7 +102,7 @@ export class ScoreService {
let addToStoryScore = 0 let addToStoryScore = 0
let foundUserInStory = await this.storyMentionModel.findOne({ user_id: new Types.ObjectId(user_id) }) let foundUserInStory = await this.storyMentionModel.findOne({ user_id: new Types.ObjectId(user_id) })
if (foundUserInStory) { if (foundUserInStory) {
addToStoryScore = foundUserInStory.count addToStoryScore = (foundUserInStory.count*2)
} }
return addToStoryScore return addToStoryScore
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment